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.1.tar.gz
(1.4 kB
view hashes)
Built Distribution
Close
Hashes for dehumanizer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be63917f56cbee35df82df9e4ba37be5a4923d8ba7cade3897f2dda18a575865 |
|
MD5 | c056c1b551fa335288b9dc137b5ff4ef |
|
BLAKE2b-256 | bf7f849063f5157c58ce65d603ab61790941c07d57bcb07eecaacb28522e88de |