Skip to main content

A small package to convert float numbers to russian string

Project description

PyPI Downloads

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"
) # шестьсот пятьдесят один миллиард один юань два цзяо один фынь 

Project details


Download files

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

Source Distribution

num2rus-1.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

num2rus-1.0.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file num2rus-1.0.0.tar.gz.

File metadata

  • Download URL: num2rus-1.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for num2rus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1de6a23ae93cf010d19614e3cc0d498ce1a6c9ed0353d8a8d1b478554e47081f
MD5 c0a9304d435e8e5ee54c95e9391fccba
BLAKE2b-256 bd26987d186470a382bc00f550dc9e01cb7677dd6d6b6ab33676241787a06bde

See more details on using hashes here.

Provenance

The following attestation bundles were made for num2rus-1.0.0.tar.gz:

Publisher: pythonpublish.yml on terean-dspd/numbers-2-rus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file num2rus-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: num2rus-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for num2rus-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be9d9a0218b8021fedefdb16757d590ee342ef5bdb047327b72e35ffe611ddd8
MD5 9f16b46bcd25c3779d40f9de80cf90a6
BLAKE2b-256 33cef7c86b96ecaa0420cff6c788f64b07b2599c902f2072bb5690107a5991f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for num2rus-1.0.0-py3-none-any.whl:

Publisher: pythonpublish.yml on terean-dspd/numbers-2-rus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page