Skip to main content

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

Metadata

Release files for dehumanizer 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dehumanizer 0.0.2
File Size Uploaded
dehumanizer-0.0.2.tar.gz 1.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dehumanizer 0.0.2
File Interpreter ABI Platform
dehumanizer-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.3 kB

Release files / dehumanizer-0.0.2.tar.gz

Download URL dehumanizer-0.0.2.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7026f16e83e4d5d2c6a0efbdcb6931cf6c2ebdb5ca2f762d4719d8cd7dc40b58
BLAKE2b-256 checksum
How to use checksums
09bd29bf5f3777f3364f3acf29df3415196541fece5c32d085b79deafedd3783
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / dehumanizer-0.0.2-py3-none-any.whl

Download URL dehumanizer-0.0.2-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3434629c0ee1049140f340db143186416c46fc29936d3a9997a4e93dab396785
BLAKE2b-256 checksum
How to use checksums
c9eaedb6351a807fdd62ead11e7a1f9b0cbcbdb85bab38e3e88f8ca1bc3017b6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page