Преобразует число в слова прописью и добавляет
валюту, которую можно задать
(по умолчанию валюта рубли/копейки)
## Как установить?
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 тиынов'
## Скоро:
Добавление английского языка
Metadata
Release files for number_to_string 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| number_to_string-1.0.3.tar.gz | 3.6 kB | Without provenance | Details for number_to_string-1.0.3.tar.gz |
Release files / number_to_string-1.0.3.tar.gz
| Download URL | number_to_string-1.0.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b881c4f12772238fd3812356f485f9b55d7d87894b8d2b1cc874bbe2b9e935f
|
|
BLAKE2b-256 checksum How to use checksums |
d4cd60deede5b7fc2665aaee8009e1db59128c1365b5a9c9ac9f967a2d0e0e35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for number_to_string 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.