Skip to main content

A package to humanize numbers into readable formats like 1K, 1M

Project description

humanize_number

A package to humanize numbers into readable formats like 1K, 1M

pip install humanize_number
from humanize_number import humanize_number
humanize_number(579000)
>>> 579k

flask-extension

from flask import Flask
from humanize_number.humanize_flask import init_app

app = Flask(__name__)
init_app(app)

# index.html
# {{ number | humanize_number }}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

humanize_number-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file humanize_number-0.1.1.tar.gz.

File metadata

  • Download URL: humanize_number-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for humanize_number-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d8c80854085b61ca876ac7ed7c848d5909f79b838ca7f148daea0caa4a7529c0
MD5 540cc4f8e145fdd7d5084dd2b76af355
BLAKE2b-256 ee7cee74e5729201d6418a6969b92f44056a732b30eecaf9a011a2e53f92050b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page