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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page