Skip to main content

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

czech-number-utils-1.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

czech_number_utils-1.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file czech-number-utils-1.0.3.tar.gz.

File metadata

  • Download URL: czech-number-utils-1.0.3.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

Hashes for czech-number-utils-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c21ba017831b4d28deddc8551263374bf368ba9f5b59fb61bb47b904fc9cd5a1
MD5 a89df4ee5291e4154320897c4448acc4
BLAKE2b-256 97abd24d34df723614f4fac6a8f95e21372c7cf7211e4c9c66630101568406ee

See more details on using hashes here.

File details

Details for the file czech_number_utils-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for czech_number_utils-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 78c05e74848a2b1285204c2c4740b2623a5959d0e0af16a2a8686a6098f39331
MD5 10fd8d0e513518ebfe744449f06c14e8
BLAKE2b-256 02ec512c5ad7b0d83d47bf39b94bb0da1ea00640f07f4991786d2715a6e7e888

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page