Metadata-Version: 2.4
Name: khmer-time-format
Version: 0.1.0
Summary: Format 12/24 hour time into Khmer (digits or words).
Author: Kon Thaina
License: MIT
Project-URL: Homepage, https://github.com/Konthaina/khmer-time-format-py
Project-URL: Repository, https://github.com/Konthaina/khmer-time-format-py
Keywords: khmer,time,format
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == "dev"
Requires-Dist: ruff>=0.5; extra == "dev"
Requires-Dist: mypy>=1.10; extra == "dev"
Dynamic: license-file

# khmer-time-format (Python)

Format 12-hour / 24-hour time (e.g. `1:22 PM`, `13:22`) into Khmer with **two options**:

1) **Khmer numerals (digits)**  
`ម៉ោង១ និង ២២ នាទី រសៀល`

2) **Khmer words (no digits)**  
`ម៉ោងមួយ និង ម្ភៃពីរ នាទី រសៀល`

## Install

```bash
pip install khmer-time-format
```

## Usage

```python
from khmer_time_format import format_time

print(format_time("1:22 PM", mode="digits"))
print(format_time("13:22", mode="words"))
```

## Development

```bash
python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
pip install -e ".[dev]"
pytest
ruff check .
mypy src
```

## Build & publish (PyPI)

```bash
python -m build
python -m twine check dist/*
```

Push a version tag to publish to PyPI via GitHub Actions:

```bash
# tag value becomes package version
git tag v0.1.0
git push origin v0.1.0
```

Tag pushes matching `v*` trigger `.github/workflows/publish.yml`.

With this setup, you do not need to edit the version in `pyproject.toml` for each release.
