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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: czech-number-utils-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 12cffef9f95708de832cd2dcb9c0cf7f48a5089d61fc2b531b69abc0e6c33da8
MD5 1842a6b051fd9823196ce80713a5ef01
BLAKE2b-256 ec17f4b54450e174d4664f50f53483e6675bd7c64707ca2e3c362dfb9ad5fc63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for czech_number_utils-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc9841936d2857bb60eb7e60bdc50094dbdb51f9b49257a855d1c751b5290661
MD5 857e3f9b23c278753dbf20eb404bc93c
BLAKE2b-256 10cbce595eeaeba674690968ca4d55c47560ebc7ad1610ce074ba30f7589666c

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