Skip to main content

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)'

Metadata

Release files for sizestr 1.2.1

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

Source distribution (sdist)

Source distribution for sizestr 1.2.1
File Size Uploaded
sizestr-1.2.1.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sizestr 1.2.1
File Interpreter ABI Platform
sizestr-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / sizestr-1.2.1.tar.gz

Download URL sizestr-1.2.1.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c14c153bd7978a3cc926ea90e45301aef4bd1cb7c0a2ec873397dc1c2da71217
BLAKE2b-256 checksum
How to use checksums
1be69c793c0e63eb723d1c0f768e3651bb6441bda45943d06778466d59685742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 11, 2025.

Transparency log

Release files / sizestr-1.2.1-py3-none-any.whl

Download URL sizestr-1.2.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c880bedabb569ac5e7c770faee6344c7cbba23c533d84d29c111f17d239112ba
BLAKE2b-256 checksum
How to use checksums
a5f30472f88c0d29a42fe1fd1c3a07b8ed9317f3206a0aa658ef2e06c62a3931
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 11, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.0

8 release files

1.0.0

8 release files

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