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.0.tar.gz (1.7 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.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: czech-number-utils-1.0.0.tar.gz
  • Upload date:
  • Size: 1.7 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.0.tar.gz
Algorithm Hash digest
SHA256 65cc321572a294b8c361ff13ffa00c57dae3525fd984db2c0de4d8cd3a92f3bf
MD5 83ab7b75d77e6d8b6a1cb2eff29baf0b
BLAKE2b-256 a29bff2c8118ffa803714af3b21ed4d0acb8e69f7e33f3aa1a831f8bf3139003

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for czech_number_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9b83c05665d4424697d926104fded0a518de0ffb346994e9b909508cbe2b6bb
MD5 888fc181d98b92687e0c8324a7bac63e
BLAKE2b-256 cb603139daa39a16ebd626566df89e0dff19ea245a970e92498af838ab7a9c7f

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