Skip to main content

humanize-rs

High-performance Rust implementation of humanize - turn numbers and dates into human-readable strings.

Overview

humanize-rs is a Rust-powered Python library that makes numbers and dates more human-friendly, providing fast formatting with a simple, intuitive API.

Installation

pip install humanize-rs

Features

  • 🚀 High Performance: Built with Rust for maximum speed
  • 📊 Number Formatting: Format large numbers, file sizes, and more
  • 🕒 Time Humanization: Convert dates to relative time descriptions
  • 🔄 Drop-in Replacement: Compatible with the humanize library
  • 🐍 Python 3.8+: Supports Python 3.8 through 3.14
  • 🌍 Cross-Platform: Pre-built wheels for Linux, macOS, and Windows

Quick Start

from humanize_rs import naturalsize, intcomma, naturaltime
from datetime import datetime, timedelta

# Format file sizes
print(naturalsize(1024))  # "1.0 kB"
print(naturalsize(1024 * 1024))  # "1.0 MB"

# Format large numbers
print(intcomma(1000000))  # "1,000,000"

# Format time differences
now = datetime.now()
past = now - timedelta(hours=2)
print(naturaltime(past))  # "2 hours ago"

Available Functions

  • naturalsize(): Convert bytes to human-readable file sizes
  • intcomma(): Add commas to large numbers
  • naturaltime(): Convert timestamps to relative time
  • scientific(): Format numbers in scientific notation
  • And more!

Performance

humanize-rs delivers significant performance improvements over pure Python implementations, especially when processing large datasets.

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Metadata

Release files for humanize-rs 0.1.1

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

Built distributions (wheels)

Table of built distributions (wheels) for humanize-rs 0.1.1
File Actions
humanize_rs-0.1.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for humanize_rs-0.1.1-cp314-cp314-win_amd64.whl
humanize_rs-0.1.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for humanize_rs-0.1.1-cp313-cp313-win_amd64.whl
humanize_rs-0.1.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for humanize_rs-0.1.1-cp312-cp312-win_amd64.whl
humanize_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for humanize_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
humanize_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for humanize_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
humanize_rs-0.1.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for humanize_rs-0.1.1-cp311-cp311-win_amd64.whl
humanize_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details for humanize_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
humanize_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for humanize_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
humanize_rs-0.1.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for humanize_rs-0.1.1-cp310-cp310-win_amd64.whl
humanize_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details for humanize_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
humanize_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for humanize_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
humanize_rs-0.1.1-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for humanize_rs-0.1.1-cp39-cp39-win_amd64.whl
humanize_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.34+ x86-64 Details for humanize_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl
humanize_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for humanize_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
humanize_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.34+ x86-64 Details for humanize_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl
humanize_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details for humanize_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl

Total release size: 3.2 MB

Release files / humanize_rs-0.1.1-cp314-cp314-win_amd64.whl

Download URL humanize_rs-0.1.1-cp314-cp314-win_amd64.whl
Size 124.2 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
395ff19577a3764d185288dffd5e1a92d4c4e1f6590619f9f615efc6fd57ee93
BLAKE2b-256 checksum
How to use checksums
c9de1a5749810679c933292cf8d36808d75e3d3469cb993f172cfcb49ea8f229
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp313-cp313-win_amd64.whl

Download URL humanize_rs-0.1.1-cp313-cp313-win_amd64.whl
Size 124.2 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ed1e9647470396a9a147b25fe356cdcfebb20bc07b02ca3b233c34987f7204a8
BLAKE2b-256 checksum
How to use checksums
c116bfe60675d52cf8e27924cac30fc88f8aaff632e414ceb7deca6f3cc468db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp312-cp312-win_amd64.whl

Download URL humanize_rs-0.1.1-cp312-cp312-win_amd64.whl
Size 124.8 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c4b61759f3171e6fbc45a9c93a54dda165c9258eff3c010bea6b28c458703afe
BLAKE2b-256 checksum
How to use checksums
c8093ef802287ce8c223a63c8d0f16a3b3ce065ff812c1980e459e476262c271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL humanize_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
Size 264.7 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
4d3648ceb98181cdefb514be7e1e0213680610d00a12c03a4466d8c7808ad3e3
BLAKE2b-256 checksum
How to use checksums
3a5e063aa6281509ba4b29fe341497262f3bc93aedb3674c66522fa2668c7f3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL humanize_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Size 226.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b0716c5a57800822fe135989691531e4fd0875fc8cb53bc860816c74f4c91b25
BLAKE2b-256 checksum
How to use checksums
1689cbd7ce3874be1367bf6dc6fab670149d4f99df2627f744196623c6c1b69b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp311-cp311-win_amd64.whl

Download URL humanize_rs-0.1.1-cp311-cp311-win_amd64.whl
Size 124.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
fe6f60638a0cd882109fb63a828e792b20b79f3bd2234e68b58be7a4c1f4b09d
BLAKE2b-256 checksum
How to use checksums
83a7937a640c27736c24ceb2f37f2704d27658c6b32569712884960673982123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL humanize_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
Size 264.3 kB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
f1d50c1afc58a36181906a1a20356721fa0340dfb32298e9f74eee591145c410
BLAKE2b-256 checksum
How to use checksums
abb77a5d169600c8f5d606dd07808d4da846bc1ccbf491e0cb4d38b2d527ab55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL humanize_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Size 226.4 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f287c5ed625412f30b55f2d601078edcfbacb6411f76855b2e0b56d70ffada39
BLAKE2b-256 checksum
How to use checksums
607b47761eb2149694c87ab62044544cd0aa2e2336936387feb3c1909fcc40b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp310-cp310-win_amd64.whl

Download URL humanize_rs-0.1.1-cp310-cp310-win_amd64.whl
Size 124.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
be0656c193a0fa632f62ca05c7f269295a24dfa4a079dc5d4b4b72f5b4f4b302
BLAKE2b-256 checksum
How to use checksums
bfab8f5eb556270e9231c1c0c8debd3c83de2308ff00b2fd3c898d1cccba8cb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL humanize_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
Size 264.4 kB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
5e9f01f32b2ca7d170415b68d02d1f84b6090afacc5566bd30a89299e2fb89a5
BLAKE2b-256 checksum
How to use checksums
f7215033113df66be71dd4ec5aa3b91af8aabcbcc3761f52cf1fad4748c7b68f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL humanize_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Size 226.5 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d6f61488c63d0b8e21dc238b7bf0f290e43635024edb2e7e88739bef6482dcec
BLAKE2b-256 checksum
How to use checksums
da3b83ff4e2c46409adc2e76754a9771d92f7eb4c9645bd317421cb936c4cabb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp39-cp39-win_amd64.whl

Download URL humanize_rs-0.1.1-cp39-cp39-win_amd64.whl
Size 128.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
fa28684a8db5fda8d6c81e03595737e03837fead47f5d446cc2318cb756c58a4
BLAKE2b-256 checksum
How to use checksums
ad62aa301588a2467a72a727f3a77c92e6b6ae75a6b41d3f44f00cc68094ee6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl

Download URL humanize_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl
Size 264.7 kB
Tags CPython 3.9 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
80f0d2e3c5a51ffbcfabc33f6b5f5dfbccb7d0424f3c89446c774ae482cecb96
BLAKE2b-256 checksum
How to use checksums
7effbc687d0f4af848b78d280ec54dd536226431e6f31fa8d0b72baddbd3a138
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl

Download URL humanize_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
Size 227.0 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
73b554090d675e89eb480d7a345da49954182ed5310155442dcb28cf19ee0f63
BLAKE2b-256 checksum
How to use checksums
7560425dc449efac73a77815d3b126dc90dd67076fde51713a671b0abd76ec69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl

Download URL humanize_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl
Size 264.8 kB
Tags CPython 3.8 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
88acd84e414343e2cf27c8755f12a935e662db3cbb1d6e6672cb5fa49fccd953
BLAKE2b-256 checksum
How to use checksums
45bc3efaa4e9372c8bea342c49219bac29f8b2037684d0e994fef0f0e8993189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / humanize_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl

Download URL humanize_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl
Size 226.3 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9cc7fdd3ad1d86bfb30b589a36d2d1ca0a3c3499263aea1cad855dfdd85eed32
BLAKE2b-256 checksum
How to use checksums
150241352988de5efea64ce9dd793db8aa8884589b191675df392aaca036eab9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for humanize-rs 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

16 release files No provenance

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