Skip to main content

Simple and fast formatting of sizes for Python

Project description

sizestr

PyPI - Python Version Liberapay Patrons GitHub Sponsors

Simple and fast formatting of sizes for Python.

Installation

pip install sizestr

Basic usage

from sizestr import sizestr

sizestr(10000)  # '9.77 KiB'
sizestr(-42)  # '-42 B'
sizestr(float('inf'))  # '(inf)'

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

sizestr-1.2.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sizestr-1.2.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file sizestr-1.2.0.tar.gz.

File metadata

  • Download URL: sizestr-1.2.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sizestr-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8d51a2f4dd81de34bb50b3b776adb123eda1f72203f3b5f2fa11f47ce6aa4353
MD5 7fcded9dd33950922b3ea032abcedb7b
BLAKE2b-256 5308badf46f2bbc8363f57b69cc0b5d3930eff9bd07e6b245bc3a9d85278ac88

See more details on using hashes here.

Provenance

The following attestation bundles were made for sizestr-1.2.0.tar.gz:

Publisher: workflow.yaml on Zaczero/sizestr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sizestr-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: sizestr-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sizestr-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4311d5527f93cf234377dd9800821d84a147bf68cdee21db242866c6a67a00c5
MD5 4f2f3bb2f5034f707042535ad95341fb
BLAKE2b-256 b067e1ba17513efb7690bc59e67cfe72f5ff75d77c070793aec0e52af5adf8de

See more details on using hashes here.

Provenance

The following attestation bundles were made for sizestr-1.2.0-py3-none-any.whl:

Publisher: workflow.yaml on Zaczero/sizestr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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