Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

No project description provided

Project description

## ru_number_to_text
Преобразует число в слова прописью и добавляет
валюту, которую можно задать
(по умолчанию валюта рубли/копейки)

## Как установить?

pip install number_to_string

## Пример использования:

from number_to_string import get_string_by_number

string = get_string_by_number(123)
assert string == 'Сто двадцать три рубля 00 копеек'

currency_main = ('тенге', 'тенге', 'тенге')
currency_additional = ('тиын', 'тиына', 'тиынов')
string = get_string_by_number(
325,
currency_main,
currency_additional,
)
assert string == 'Триста двадцать пять тенге 00 тиынов'

## Скоро:

Добавление английского языка

Project details


Release history Release notifications

This version
History Node

1.0.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
number_to_string-1.0.3.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page