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.1.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.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sizestr-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c14c153bd7978a3cc926ea90e45301aef4bd1cb7c0a2ec873397dc1c2da71217
MD5 267966dcd6378c78aeb9c43739b12c89
BLAKE2b-256 1be69c793c0e63eb723d1c0f768e3651bb6441bda45943d06778466d59685742

See more details on using hashes here.

Provenance

The following attestation bundles were made for sizestr-1.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: sizestr-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c880bedabb569ac5e7c770faee6344c7cbba23c533d84d29c111f17d239112ba
MD5 d05f1f18a39dbd49e63f9945ca5eb8a0
BLAKE2b-256 a5f30472f88c0d29a42fe1fd1c3a07b8ed9317f3206a0aa658ef2e06c62a3931

See more details on using hashes here.

Provenance

The following attestation bundles were made for sizestr-1.2.1-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