humanreadable is a Python library to convert human-readable values for sizes, times, and bit rates into other units. It supports various formats like '1MB', '1 day', or '100Mbps'. The current version is 0.4.1. Releases occur irregularly, often tied to Python version support updates and essential bug fixes.
pip install humanreadableVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and use the `Size`, `Time`, and `BitsPerSecond` classes to parse human-readable strings and access their converted values, including basic arithmetic operations.
Ensure your Python environment is 3.10 or newer (3.12+ recommended for v0.4.1+). If you must use an older Python version, pin `humanreadable` to a compatible release (e.g., `pip install 'humanreadable<0.4.1'` for Python 3.8/3.9).
If your code expects `BitPerSecond.bps` to return an integer, update it to handle `float` values. This change was introduced in v0.2.0, so older code might fail if not adapted.
Upgrade to `humanreadable>=0.4.0` to ensure correct behavior of the `Time.to_humanreadable()` method for values exceeding one day.
No dependency data recorded yet.