Registry / serialization / numerize

numerize

JSON →
library0.12pypypi✓ verified 83d ago

Convert large numbers into readable numbers for humans (e.g., 1M, 2.5B). Version 0.12 is stable and mature, with low release cadence (last release 2020).

pip install numerize
INSTALL
IMPORT
SIG · NUMERIZE
N
numerize
serializationpythonv0.12
Install
2.6s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.12 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.6s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

numerize
from numerize import numerize
import numerize
numerize is a module; the function is also named numerize. Using 'import numerize' requires numerize.numerize() which may cause confusion.

Basic usage: convert an integer to a human-readable string.

from numerize import numerize print(numerize(1234567)) # Output: 1.23M print(numerize(1000000000)) # Output: 1B print(numerize(999000, 2)) # Output: 999K
Debug
Known issues
deprecatedThe library has not been updated since 2020. It still works but may not support newer Python versions or edge cases (e.g., very large numbers).
fix
Consider alternatives like humanize or custom formatting for active maintenance.
affects: >=0.12
gotchaThe function returns strings like '1.23M' without a space, which may not be ideal for all UI contexts.
fix
Use string formatting or postprocess if spaces are needed.
affects: *
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'numerize'
The library is not installed or the import path is wrong.
fix
Run 'pip install numerize' and use 'from numerize import numerize'.
AttributeError: module 'numerize' has no attribute 'numerize'
Using 'import numerize' and then 'numerize.numerize()' fails if the function is not imported directly.
fix
Use 'from numerize import numerize' then call numerize().
Upgrade
Version history
0.12latest on PyPI · released Aug 14, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
numerize — pip install numerize · libregistry