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
Dehumanize number strings
pip install dehumanizer==0.0.2
Parse humanized strings like 128M to 16K to something a machine can understand
pip install dehumanizer
>>> dehumanizer.parse_string('128k')
128000
You can also try millions:
>>> dehumanizer.parse_string('128m')
128000000