Releases: saptarshiroy39/sizelib
Releases · saptarshiroy39/sizelib
Release list
v0.2.3
[0.2.3] - 2026-08-11
Added
- Added month scaling helpers in
sizelib.time:m28(),m29(),m30(),m31()(for 28, 29, 30, and 31-day month second calculations). - Added year scaling helpers in
sizelib.time:y()(365-day regular year) andly()(366-day leap year). - Added dedicated
TIME_SDK.mdreference guide.
Changed
- Reordered
sizelib.timeimported constants from smallest to highest unit scale (MSthroughLEAP_YEAR). - Enriched time SDK documentation and web pages (
/timeand/human_time) with full parameter details, unit hierarchy tables, type preservation, and edge case examples.
Full Changelog: v0.2.2...v0.2.3
v0.2.2
[0.2.2] - 2026-08-11
Added
- Expanded binary unit helpers in
sizelib.sizewithpib(),eib(),zib(), andyib()(up to$1024^8$ / Yotta binary). - Expanded decimal unit helpers in
sizelib.sizewithpb(),eb(),zb(), andyb()(up to$1000^8$ / Yotta decimal). - Updated
human_size()output unit escalation to support up toYiB(base 2) andYB(base 10).
Changed
- Standardized binary-first helper definition and evaluation order across the entire library and documentation suite.
Full Changelog: v0.2.1...v0.2.2
v0.2.1
[0.2.1] - 2026-08-08
Changed
- Updated
timehelper module (sizelib.time) to short unit scaling functions (ms,s,m,h,d,w). - Updated
human_time()formatting units to abbreviated forms (s,m,h,d,w).
Full Changelog: v0.2.0...v0.2.1
v0.2.0
[0.2.0] - 2026-08-01
Added
- Added
timehelper module (sizelib.time) with scaling functions (s,ms,min,hour,day,week). - Added
human_size()function in_human_size.pyfor humanizing byte sizes. - Added
human_time()function in_human_time.pyfor formatting second into human-readable duration strings (e.g.500 ms,1 min,2 hour).
Changed
- Refactored humanization API into separate
human_sizeandhuman_timefunctions.
Full Changelog: v0.1.3...v0.2.0
v0.1.3
[0.1.3] - 2026-07-28
Added
- Added
.python-versionfile declaration pinned to Python 3.13.
Changed
- Updated PyPI package classifiers to officially support Python 3.13.
Full Changelog: v0.1.2...v0.1.3
v0.1.2
[0.1.2] - 2026-06-19
Changed
- Renamed internal modules
size.pyto_size.pyandhumanize.pyto_humanize.pyto denote them as internal implementation details, and updated imports in__init__.py. - Refactored
humanize()logic to use a standardwhileloop instead of afor-elseblock for better readability.
Added
- Updated documentation in
README.mdandSDK.mddemonstrating that unit helpers fully support passing variables and expressions as arguments.
Full Changelog: v0.1.1...v0.1.2
v0.1.1
[0.1.1] - 2026-06-15
Added
- Declared PEP 561 compliance by creating the
py.typedmarker file for inline types. - Configured
rufffor linting and code formatting checks. - Expanded package metadata in
pyproject.toml(keywords, classifiers, Bug Tracker link, and documentation URL).
Changed
- Updated
pyproject.tomlto use modernsetuptoolsautomatic package discovery (package finder) with thesrclayout.
Removed
- Custom
SizeLibErrorandFileTooLargeexception declarations (simplifying the package to a pure utility library).
Fixed
- Fixed an overflow/division bug in
humanize()when formatting byte sizes that exceed the maximum unit limit (e.g. formatting1024**9now correctly returns"1024 YiB"instead of"1 YiB").
Full Changelog: v0.1.0...v0.1.1
v0.1.0
[0.1.0] - 2026-06-13
Added
- Initial release of the
sizelibpackage. - New package entry point
src/sizelib/__init__.py. - Custom
SizeLibErrorandFileTooLargeexception declarations inexceptions.py. - Exponent-free dynamic loop size humanization function
humanize()inhumanize.pywith strict base=2 and base=10 suffix mapping. - Size factor computation helper modules (
size.py) and config constants (config.py). - Modern standard setup (
pyproject.toml) and test suites (tests/test_size.py,tests/test_humanize.py).
Full Changelog: https://github.com/saptarshiroy39/sizelib/commits/v0.1.0