A small package to convert float numbers to russian string
Project description
num2rus v 0.1.0
Небольшой python пакет для преобразования чисела в текст с учетмо множественного числа. A small package to convert float numbers to russian string.
What's new
only_rublesparam was added to cut off kops part completely.
Usage
Install package
pip install num2rus
Import it
import num2rus
num2rus.converter(1.10) # один рубль десять копеек
num2rus.converter(651_000_000_000) # шестьсот пятьдесят один миллиард рублей ноль копеек
num2rus.converter(
651_000_000_000,
zero_on=False
) # шестьсот пятьдесят один миллиард рублей
num2rus.converter(
651_000_000_000.01,
only_rubles=True
) # шестьсот пятьдесят один миллиард рублей
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file num2rus-0.1.0.tar.gz.
File metadata
- Download URL: num2rus-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fb9f42aa9b7172d9bf32e0ca6d5925cf843961c96faf475fb7f4c8396b52599
|
|
| MD5 |
d6e814f8f1d8e6fb56323c78c4bce4ea
|
|
| BLAKE2b-256 |
60fd406799aa7d2e6ab57e6674a340a27dbe71e8a9de5e368f80866dda712d22
|
Provenance
The following attestation bundles were made for num2rus-0.1.0.tar.gz:
Publisher:
pythonpublish.yml on terean-dspd/numbers-2-rus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
num2rus-0.1.0.tar.gz -
Subject digest:
6fb9f42aa9b7172d9bf32e0ca6d5925cf843961c96faf475fb7f4c8396b52599 - Sigstore transparency entry: 157524195
- Sigstore integration time:
-
Permalink:
terean-dspd/numbers-2-rus@ea8b93141d1ed84ce92dda3213ab23df6e7254c5 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/terean-dspd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pythonpublish.yml@ea8b93141d1ed84ce92dda3213ab23df6e7254c5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file num2rus-0.1.0-py3-none-any.whl.
File metadata
- Download URL: num2rus-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
484578780498fe0e8acc0ec60b66c510011b394046e0c27d7b91213c7a2f90fa
|
|
| MD5 |
f632c7cae13950416c5624d58e4dfb30
|
|
| BLAKE2b-256 |
53fd489c8110d7a56e403e845d5affa4664a318f215460b2d70c6322ab8d9acc
|
Provenance
The following attestation bundles were made for num2rus-0.1.0-py3-none-any.whl:
Publisher:
pythonpublish.yml on terean-dspd/numbers-2-rus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
num2rus-0.1.0-py3-none-any.whl -
Subject digest:
484578780498fe0e8acc0ec60b66c510011b394046e0c27d7b91213c7a2f90fa - Sigstore transparency entry: 157524197
- Sigstore integration time:
-
Permalink:
terean-dspd/numbers-2-rus@ea8b93141d1ed84ce92dda3213ab23df6e7254c5 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/terean-dspd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pythonpublish.yml@ea8b93141d1ed84ce92dda3213ab23df6e7254c5 -
Trigger Event:
release
-
Statement type: