Dehumanize number strings
Project description
Parse humanized strings like 128M to 16K to something a machine can understand
Installation
pip install dehumanizer
Usage
>>> dehumanizer.parse_string('128k')
128000
You can also try millions:
>>> dehumanizer.parse_string('128m')
128000000
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
dehumanizer-0.0.2.tar.gz
(1.4 kB
view hashes)
Built Distribution
Close
Hashes for dehumanizer-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3434629c0ee1049140f340db143186416c46fc29936d3a9997a4e93dab396785 |
|
MD5 | 567155d172b6907407561151daeb9269 |
|
BLAKE2b-256 | c9eaedb6351a807fdd62ead11e7a1f9b0cbcbdb85bab38e3e88f8ca1bc3017b6 |