Python class for converting numbers into Bulgarian cyrillic words
Project description
num2cyrillic
With num2cyrillic.NumberToWords() Python3 class you can convert an integer number to simple Bulgarian cyrillic words. This can be useful when you need to spell a currency value e.g. on an invoice.
This is a Python3 porting of the excellent PEAR::Numbers_Words class by Kouber Saparev for PHP.
All credit goes to him, this is simply an implementation of the same logic in Python.
Installation
pip install num2cyrillic
Usage
from num2cyrillic import NumberToWords
num2bg = NumberToWords()
num2bg.cyrillic(3)
num2bg.cyrillic(67)
# три
# шестдесет и седем
(C) Copyright 2018 ClaimCompass, Inc.
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
num2cyrillic-1.0.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file num2cyrillic-1.0.0.tar.gz
.
File metadata
- Download URL: num2cyrillic-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0e26938aba5fedc86424a5c33e6a10a8f2ccff37ee071ce9c3227ade79efb09 |
|
MD5 | 8f418772d00244b82f035b418c0880f6 |
|
BLAKE2b-256 | c103fc4244bf7e73a91c4359d3a13bc3ed9a16a9111610a06790e8a776bae23e |
File details
Details for the file num2cyrillic-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: num2cyrillic-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b9c52d3dc001842542033332346b590da747ecd78d18a0dff496a51a2ae252 |
|
MD5 | 50022c64dcd5eb762c13bc5e2069cd27 |
|
BLAKE2b-256 | 1326b256e10e28f1ab49a95e08ae9832f92a8378a62d649654f983333d5d60e8 |