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 details)
Built Distribution
File details
Details for the file dehumanizer-0.0.2.tar.gz
.
File metadata
- Download URL: dehumanizer-0.0.2.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7026f16e83e4d5d2c6a0efbdcb6931cf6c2ebdb5ca2f762d4719d8cd7dc40b58 |
|
MD5 | 714c24e98e7ffaa12e77d72d5a6eb133 |
|
BLAKE2b-256 | 09bd29bf5f3777f3364f3acf29df3415196541fece5c32d085b79deafedd3783 |
File details
Details for the file dehumanizer-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: dehumanizer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3434629c0ee1049140f340db143186416c46fc29936d3a9997a4e93dab396785 |
|
MD5 | 567155d172b6907407561151daeb9269 |
|
BLAKE2b-256 | c9eaedb6351a807fdd62ead11e7a1f9b0cbcbdb85bab38e3e88f8ca1bc3017b6 |