Skip to main content

A small package to convert float numbers to russian string

Project description

Upload Python Package

num2rus v 0.1.0

Небольшой python пакет для преобразования чисела в текст с учетмо множественного числа. A small package to convert float numbers to russian string.

What's new

  • only_rubles param 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


Download files

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

Source Distribution

num2rus-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

num2rus-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for num2rus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6fb9f42aa9b7172d9bf32e0ca6d5925cf843961c96faf475fb7f4c8396b52599
MD5 d6e814f8f1d8e6fb56323c78c4bce4ea
BLAKE2b-256 60fd406799aa7d2e6ab57e6674a340a27dbe71e8a9de5e368f80866dda712d22

See more details on using hashes here.

Provenance

The following attestation bundles were made for num2rus-0.1.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-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

Hashes for num2rus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 484578780498fe0e8acc0ec60b66c510011b394046e0c27d7b91213c7a2f90fa
MD5 f632c7cae13950416c5624d58e4dfb30
BLAKE2b-256 53fd489c8110d7a56e403e845d5affa4664a318f215460b2d70c6322ab8d9acc

See more details on using hashes here.

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

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