Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dehumanizer, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size dehumanizer-0.0.2-py3-none-any.whl (1.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size dehumanizer-0.0.2.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page