Skip to main content

Multilanguage library for conversion numbers to words description

Project description

Number Transcription

Multilanguage library for conversion numbers to words description

Installation

pip

pip install number-transcription

poetry

poetry add number-transcription

from source

git clone https://github.com/OlegYurchik/number-transcription
pip install ./number_transcription

Quick Start

import number_transcription as nt


text = nt.russian.number_to_words(100_011)
print(text)  # сто тысяч одинадцать

text = nt.russian.number_to_words(
    1_015_000,
    unit=nt.russian.RussianUnitForm(one="ложка", any="ложки", many="ложек",
                                    gender=nt.enums.GenderEnum.FEMALE),
)
print(text)  # один миллион пятнадцать тысяч ложек

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

number_transcription-1.1.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

number_transcription-1.1.0-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

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