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

The recommended installation method is through the PyPI package manager. The project is implemented in Rust and several pre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.

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.0.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distributions

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

sizestr-1.0.0-cp38-abi3-win_amd64.whl (109.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

sizestr-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl (403.7 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

sizestr-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl (419.6 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

sizestr-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (222.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

sizestr-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (213.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

sizestr-1.0.0-cp38-abi3-macosx_11_0_arm64.whl (205.2 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

sizestr-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl (209.9 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: sizestr-1.0.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for sizestr-1.0.0.tar.gz
Algorithm Hash digest
SHA256 76ad5776c0c0fc1f1f05a82c9eb434e5961b1ae7772b85238660a0541820caf4
MD5 50cc53b4e398baaa415531bf5a8a48a1
BLAKE2b-256 0acee922cedbc68cb0f0762713f8cd0598d2847fef1c48c6fea90c0996a3da4c

See more details on using hashes here.

File details

Details for the file sizestr-1.0.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: sizestr-1.0.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 109.7 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for sizestr-1.0.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2e28972e20d18b3f1d88b45345791765b418616ac520477d5cf04be8cb1f802f
MD5 c8cf88a925cbf3d2f65a9e83d2cd1345
BLAKE2b-256 5e802b170f25ae22f96b712a5f176d424365a4f0d63843f4a27e849b169ad5ee

See more details on using hashes here.

File details

Details for the file sizestr-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sizestr-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3094ba19670cae2bc8c416bfcc7deb882247e324b9b80bb0adc87d66a7508cfb
MD5 dc1f5d93fcd7169521f3c66b009b64f1
BLAKE2b-256 f62b3da8e4e7c577dfd054e620247c2214a0b9a390ce64fc5f206b0f98e53506

See more details on using hashes here.

File details

Details for the file sizestr-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for sizestr-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 5a5bbc0f65dd200d2cd11ad15603579bf803ecaca475eeecdaddc23d6922888e
MD5 16788544f49249174e0d4cefea19aa08
BLAKE2b-256 0878ee41b017172a70171db07ab331712293b0613682cb52fa2f682a79825088

See more details on using hashes here.

File details

Details for the file sizestr-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sizestr-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d900e07d03ca8153e52c460a083ca6b252019ce2153bccd0e1de40d7266ac627
MD5 cf6d66864ab8ae2c77d8312f07dcd058
BLAKE2b-256 082eab7427963f74ec12e3b747de49c69103aa342ae6a0bf0b31ec40991937bb

See more details on using hashes here.

File details

Details for the file sizestr-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for sizestr-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 de5fd84cd6ce5a5b4bf0d377e4a141ae5c68e094611243f8c60f51ff87e5ac2e
MD5 d7fd4b4cc1399028e5384a7432fc27f2
BLAKE2b-256 f017f1a481e53e6abbad1910b1046634f45275f47d5ff41cb59e8a8567337c0a

See more details on using hashes here.

File details

Details for the file sizestr-1.0.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sizestr-1.0.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d37958cdfb29a7352c921bc814d8406cc989ba6fff069f4dd878e15be92b6da9
MD5 c818853bf28b7c0a4f4b1f85f8b4a75d
BLAKE2b-256 a557add87f4f1d89009ee7cf1613976f630a77117af1bd09fbbf81651d2245ee

See more details on using hashes here.

File details

Details for the file sizestr-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sizestr-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7f64716428843653c6979733df557b752aab634bb6d6af14149f76264b569e38
MD5 638a3e943790fbfa328cd7dfc0fe4c52
BLAKE2b-256 fe4456a5dc2d43025a4c6f3f62ccec9fb2abc17dcab9f2189a825bcc79837cf5

See more details on using hashes here.

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