Skip to main content

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
Filename, size dehumanizer-0.0.2.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page