byteformat-0.2a
توضیحات
Generate human-readable representations of numbers of bytes.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | byteformat-0.2a |
| نام | byteformat |
| نسخه کتابخانه | 0.2a |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Steven D'Aprano |
| ایمیل نویسنده | steve+python@pearwood.info |
| آدرس صفحه اصلی | http://pypi.python.org/pypi/byteformat |
| آدرس اینترنتی | https://pypi.org/project/byteformat/ |
| مجوز | MIT |
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.
نحوه نصب
نصب پکیج whl byteformat-0.2a:
pip install byteformat-0.2a.whl
نصب پکیج tar.gz byteformat-0.2a:
pip install byteformat-0.2a.tar.gz