This release is a pre-release and may not be stable for production use.
byteformat is a Python library and command line script for displaying numbers of bytes as strings using standards-compliant human-readable units such as ‘23 KB’ or ‘1.25 terabytes’.
Supports both official standards and the common de facto standard:
SI decimal units, e.g. 1000 bytes = 1 KB;
IEC binary units, e.g. 1024 bytes = 1 KiB;
Mixed decimal names with binary sizes, e.g. 1024 bytes = 1 KB.
Supports the full set of decimal prefixes from kilo- to yotta- and the binary prefixes kibi- to yobi-.
Generate strings using symbols (e.g. ‘KB’), abbreviated names (‘Kbyte’) or full names (‘kilobyte’).
Uses correct plural terms when needed.
Automatically selects the best unit for a given number of bytes.
Allows the caller to explicitly override that selection and select which unit to use.
Easily customise the output without subclassing.
Importable as a Python library module.
Runs as a command line script.
Metadata
Release files for byteformat 0.2a
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| byteformat-0.2a.tar.gz | 9.9 kB | Without provenance | Details for byteformat-0.2a.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| byteformat-0.2a.linux-i686.exe | Details for byteformat-0.2a.linux-i686.exe |
Total release size: 81.7 kB
Release files / byteformat-0.2a.tar.gz
| Download URL | byteformat-0.2a.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6db16a308492d8a230f315900d1a2a7235e9aa5c970d2c4ad0da85fc99b7baa
|
|
BLAKE2b-256 checksum How to use checksums |
3f5e10c1b00c0c9468ea0505e78a702ebc73a344bdb94a41db941cfe5d888cfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / byteformat-0.2a.linux-i686.exe
| Download URL | byteformat-0.2a.linux-i686.exe |
|---|---|
| Size | 71.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
826b0dfbe2cafa5089860b90b6f70dfd5e19b93675ca1d905fa1967f2026e89f
|
|
BLAKE2b-256 checksum How to use checksums |
64a2b89b4068e86219ccd4599327333682b088bd3a6170d54c54e65ec1781cb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for byteformat 0.2a
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.