num2rus v 1.0.0
Небольшой python пакет для преобразования чисела в текст с учетмо множественного числа. A small package to convert float numbers to russian string.
What's new
- new currencies have been added:
- USD
- EUR
- CNY
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
) # шестьсот пятьдесят один миллиард рублей
num2rus.converter(
651_000_000_000.01,
currency="CNY"
) # шестьсот пятьдесят один миллиард один юань два цзяо один фынь
Metadata
Release files for num2rus 1.0.0
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 |
|---|---|---|---|---|
| num2rus-1.0.0.tar.gz | 8.2 kB | With provenance | Details for num2rus-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| num2rus-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for num2rus-1.0.0-py3-none-any.whl |
Total release size: 17.5 kB
Release files / num2rus-1.0.0.tar.gz
| Download URL | num2rus-1.0.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1de6a23ae93cf010d19614e3cc0d498ce1a6c9ed0353d8a8d1b478554e47081f
|
|
BLAKE2b-256 checksum How to use checksums |
bd26987d186470a382bc00f550dc9e01cb7677dd6d6b6ab33676241787a06bde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2025.
Transparency logRelease files / num2rus-1.0.0-py3-none-any.whl
| Download URL | num2rus-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be9d9a0218b8021fedefdb16757d590ee342ef5bdb047327b72e35ffe611ddd8
|
|
BLAKE2b-256 checksum How to use checksums |
33cef7c86b96ecaa0420cff6c788f64b07b2599c902f2072bb5690107a5991f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2025.
Transparency logSecurity for num2rus 1.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for num2rus-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2025.
Transparency logA 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.