byteformat 0.1a
Generate human-readable representations of numbers of bytes.
Latest Version: 0.2a
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'.
- Support for the two official and one de facto standards for bytes:
- SI decimal units, e.g. 1000 bytes = 1 KB;
- IEC binary units, e.g. 1024 bytes = 1 KiB;
- Classic units, 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.
Allows the caller to explicitly choose which unit to use.
Automatically selects the best unit for a given number of bytes.
Easily customise the output without subclassing.
Importable as a Python library module.
Runs as a command line script.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| byteformat-0.1a.linux-i686.exe (md5) | MS Windows installer | any | 2011-02-23 | 68KB | 257 |
| byteformat-0.1a.tar.gz (md5) | Source | 2011-02-23 | 7KB | 336 | |
- Author: Steven D'Aprano
- Home Page: http://pypi.python.org/pypi/byteformat
- Keywords: bytes,human readable,SI units
- License: MIT
-
Categories
- Development Status :: 3 - Alpha
- Environment :: Console
- Environment :: Other Environment
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Operating System :: OS Independent
- Programming Language :: Python
- Programming Language :: Python :: 2.5
- Programming Language :: Python :: 2.6
- Programming Language :: Python :: 2.7
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: Utilities
- Package Index Owner: stevenjd
- DOAP record: byteformat-0.1a.xml
