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

Uploaded Python 3

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

Hashes for czech-number-utils-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7600f3afe2121f03ac6df0b7ba5dc6dd9f2a8d87b18ade2f0b8e078e55a8be65
MD5 5dff0c4d136aed1f85f72a975dd0c750
BLAKE2b-256 2f25082943da91c32107b2fd7270a1f8b81835b768d5f2296d4d168b1ec30af9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for czech_number_utils-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 02e70c4fe0b964740f321a625476887d2f503211c3e7f81e15500a3b5bd53e45
MD5 462269c2f6aaeae39123fbd9178817ed
BLAKE2b-256 bb4fc8d6eceb49b54ac6d903c46f05cfebabd7b890f004820188a72a3fe465bc

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