Python Package to convert number to text
Project description
Num Text
A Python Package to convert Numbers to Text.
Installation :
pip install numtext
Details :
Convert any whole number to text.
Dependency :
This package is developed without any third party dependency. It uses re
library which is built into python. Other features are implemented in pure python.
Examples :
import numtext as nt
a_big_number = 123456789
a_big_number_in_text = nt.convert(a_big_number)
print(a_big_number_in_text)
# nine hundred and eighty seven million six hundred and
# fifty four thousand three hundred and twenty one
import numtext as nt
tiny_number = "12" # Number can also be in string
tiny_number_text = nt.convert(tiny_number)
print(tiny_number_text) # twelve
Roadmap :
This package is still in active development. More features will be added frequently.
Features Yet to be added :
- Support for numbers above
Nine hundreden and Ninty Nine Duotrigintillion (999 x 10^99)
. - Support for Negative Number.
- Conversion in Indian System.
- Support for Fractional numbers.
- Better Exceptional Handling.
- Text Formatting Options like lowercase, capitalize etc., for converted text.
- < I would like to hear your advice on what feature to add >
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
numtext-0.1.0.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for numtext-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8095088c71a5ad0f703ec7434564c07f6156e39b7bb1d091b86d6ec68dcd585d |
|
MD5 | 5be162617e35dc3a0942e77b6a29a91d |
|
BLAKE2b-256 | 9e6429085002b3e13c9e80fd75672764c826e10c24db063ef03f7cb712a23c77 |