Skip to main content

Python package for working with quantitative numerals in Russian.

Project description

Пакет Python для работы с количественными числительными русского языка.

Установка

pip install russian-numerals
# or
pip install git+https://gitlab.com/djbaldey/russian-numerals.git@master#egg=russian-numerals

Использование в консоли

russian-numerals "1234567890"
russian-numerals --handler=tons "1234567890.123456"
russian-numerals "восемь девятьсот двадцать четыре шестьсот сорок четыре девяносто девять сорок четыре"
russian-numerals --help

Использование в коде Python

from russian_numerals import prepare

print(prepare("1234567890"))
print(prepare("1234567890.123456", "tons"))
print(prepare("восемь девятьсот двадцать четыре шестьсот сорок четыре девяносто девять сорок четыре"))

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

russian-numerals-0.2b0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

russian_numerals-0.2b0-py3-none-any.whl (8.6 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