NUM_TO_STR_REPR
Simple package that converts numbers (int and float) to the Russian and Ukrainian string representation.
The supported number in range [-googol, googol].
Installation
Use the package manager pip to install num-to-str-repr.
pip install num-to-str-repr
Example
By default the language is Russian.
from num_to_str_repr.number_converter import NumberConverter
converter = NumberConverter()
# Int number
converter.convert(789_567_361_890_000_321)
"семьсот восемьдесят девять квадриллионов пятьсот шестьдесят семь триллионов триста шестьдесят один миллиард восемьсот девяносто миллионов триста двадцать один"
# Float number
converter.convert(534.321)
"пятьсот тридцать четыре целых триста двадцать одна тысячная"
from num_to_str_repr.number_converter import NumberConverter
converter = NumberConverter("UA")
# Int number
converter.convert(789_567_361_890_000_321)
"сімсот вісімдесят дев'ять квадрильйонів п'ятсот шістдесят сім трильйонів триста шістдесят один мільярд вісімсот дев'яносто мільйонів триста двадцять один"
# Float number
converter.convert(132.41)
"сто тридцять дві цілих сорок одна сота"
Run tests
python3 -m unittest tests.num_to_str_repr
License
Metadata
Release files for num-to-str-repr 0.0.4
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 | |
|---|---|---|---|---|
| num_to_str_repr-0.0.4.tar.gz | 7.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| num_to_str_repr-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / num_to_str_repr-0.0.4.tar.gz
| Download URL | num_to_str_repr-0.0.4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
297b450f0b5f597ec3b0b8bed130eff9d26118eddff546b0593c9a16cf52b241
|
|
BLAKE2b-256 checksum How to use checksums |
360cb67c27b1e074dd26b17f0fb371bf4bc06744a70811a10d87abcf52253cfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
|
Release files / num_to_str_repr-0.0.4-py3-none-any.whl
| Download URL | num_to_str_repr-0.0.4-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cac084f87dd5ea32f5d988cb0ef29fbb0a07a35e5f10d3f3b53fa291705b8c0b
|
|
BLAKE2b-256 checksum How to use checksums |
9ffd6f861531080aea30121e2aef7c7db1792178a2494548a5c77d0ca1c25aba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
|
Security for num-to-str-repr 0.0.4
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.