hurry.filesize
A simple Python library for human readable file sizes (or anything sized in bytes).
What it is and what it does
hurry.filesize is a minimal utility that takes a byte count and returns a formatted string representing that size in human-readable units. It supports four formatting systems: the traditional binary system (1024-based multipliers, e.g., '1K' for 1024 bytes), an alternative format with explicit unit labels ('1 KB'), a verbose format spelling out unit names ('1 kilobyte'), and the SI system using 1000-based multipliers. The package has no external dependencies and is purely a formatting function.
The package was released once in 2009 and has received no updates since. It is no longer maintained, meaning it will not be updated for Python compatibility issues, security concerns, or feature requests. For simple byte-to-string conversion, it works as advertised, but its age and abandonment status mean you should evaluate whether a more actively maintained alternative better suits your project's long-term needs.
Use it for:
- Display file sizes in logs or user-facing output without manual unit conversion logic.
- Format download or upload progress indicators with human-readable byte counts.
- Generate storage quota or disk usage reports in readable format for monitoring dashboards.
- Convert API response byte counts to display-friendly strings in CLI tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts byte counts into human-readable file size strings using configurable unit systems (traditional 1024-based, SI 1000-based, verbose, or alternative formats).
No. The package is abandoned (no updates since 2009) and offers only a trivial formatting function that is easy to reimplement or find in actively maintained alternatives. The unclear license and lack of Python version specification add friction. Install only if you are maintaining legacy code already using it and cannot refactor.
Install
hurry-filesize on PyPI
pip
pip install hurry-filesizeuv
uv add hurry-filesizepoetry
poetry add hurry-filesizeInstalling hurry.filesize
Before you install
High install friction: the package has been abandoned since its only release on 2009-03-11 and receives no maintenance. No runtime dependencies, but the lack of updates across 6365 days and absence of repository signals suggest it will not receive bug fixes or compatibility updates.
License in practice
License treatment is unclear; the raw license is listed as ZPL 2.1 but without SPDX confirmation. Verify the actual license terms before use in proprietary or GPL-licensed projects.
Quickstart
from hurry.filesize import size
print(size(1024)) # '1K'
print(size(1024, system='alternative')) # '1 KB'
Verify before relying
- Whether ZPL 2.1 is the correct and current license, and what compatibility it has with your project's licensing model.
- Whether the package works with modern Python versions (no requires_python specified in metadata).
- Whether there are known issues or edge cases in the abandoned codebase that affect current use.
Package facts
| License | ZPL 2.1 (unclear) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 6,365 days since the last release |
| First released | |
| Downloads | 271,435/month — #8,221 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: hurry.filesize-0.9.tar.gz
Keywords: file, size, bytes
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
bitmathbitmath converts and performs arithmetic on…
permissive · top 15,000 on PyPI
binaryConverts between binary (IEC) and decimal (SI)…
permissive · top 15,000 on PyPI
numerizeConverts large numbers into human-readable…
permissive · top 15,000 on PyPI
humanfriendlyFormats and parses numbers, file sizes,…
permissive · top 1,000 on PyPI
about-timeMeasures execution time and throughput of code…
permissive · top 5,000 on PyPI
agoConverts datetime, timedelta, and timestamp…
permissive · top 15,000 on PyPI
humanreadableParses human-readable time and bitrate strings…
permissive · top 15,000 on PyPI
human-readableConverts numbers, dates, times, file sizes, and…
permissive · top 15,000 on PyPI
RoffIORoffio reads and writes Roxar Open File Format…
copyleft · top 15,000 on PyPI
circular-dictCircularDict is a Python dictionary that…
permissive · top 5,000 on PyPI