Convert numbers to Czech text representations
Project description
Czech Number Utilities
Czech Number Utilities is a Python module for converting numbers into their textual representations in Czech, both cardinal and ordinal forms. It supports grammatical cases and handles large numbers up to billions.
Features
- Convert numbers to Czech cardinal and ordinal forms.
- Handles complex numbers like millions and billions.
- Supports grammatical rules specific to Czech.
Installation
You can install the package directly from PyPI:
pip install czech-number-utils
Usage
from czech_number_utils import number_to_czech_word, number_to_czech_ordinal
# Cardinal numbers
print(number_to_czech_word(1379)) # Output: "tisíc tři sta sedmdesát devět"
# Ordinal numbers
print(number_to_czech_ordinal(23)) # Output: "dvacátý třetí"
Contributing
Contributions are welcome! Please submit issues or pull requests on the GitHub repository.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file czech-number-utils-1.0.2.tar.gz.
File metadata
- Download URL: czech-number-utils-1.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7600f3afe2121f03ac6df0b7ba5dc6dd9f2a8d87b18ade2f0b8e078e55a8be65
|
|
| MD5 |
5dff0c4d136aed1f85f72a975dd0c750
|
|
| BLAKE2b-256 |
2f25082943da91c32107b2fd7270a1f8b81835b768d5f2296d4d168b1ec30af9
|
File details
Details for the file czech_number_utils-1.0.2-py3-none-any.whl.
File metadata
- Download URL: czech_number_utils-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02e70c4fe0b964740f321a625476887d2f503211c3e7f81e15500a3b5bd53e45
|
|
| MD5 |
462269c2f6aaeae39123fbd9178817ed
|
|
| BLAKE2b-256 |
bb4fc8d6eceb49b54ac6d903c46f05cfebabd7b890f004820188a72a3fe465bc
|