Skip to content

Releases: saptarshiroy39/sizelib

v0.2.3

Choose a tag to compare

@saptarshiroy39 saptarshiroy39 released this 12 Aug 13:02
47fcc23

[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) and ly() (366-day leap year).
  • Added dedicated TIME_SDK.md reference guide.

Changed

  • Reordered sizelib.time imported constants from smallest to highest unit scale (MS through LEAP_YEAR).
  • Enriched time SDK documentation and web pages (/time and /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

Choose a tag to compare

@saptarshiroy39 saptarshiroy39 released this 11 Aug 11:05
233365d

[0.2.2] - 2026-08-11

Added

  • Expanded binary unit helpers in sizelib.size with pib(), eib(), zib(), and yib() (up to $1024^8$ / Yotta binary).
  • Expanded decimal unit helpers in sizelib.size with pb(), eb(), zb(), and yb() (up to $1000^8$ / Yotta decimal).
  • Updated human_size() output unit escalation to support up to YiB (base 2) and YB (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

Choose a tag to compare

@saptarshiroy39 saptarshiroy39 released this 08 Aug 15:11
79154ef

[0.2.1] - 2026-08-08

Changed

  • Updated time helper 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

Choose a tag to compare

@saptarshiroy39 saptarshiroy39 released this 05 Aug 02:57
4642451

[0.2.0] - 2026-08-01

Added

  • Added time helper module (sizelib.time) with scaling functions (s, ms, min, hour, day, week).
  • Added human_size() function in _human_size.py for humanizing byte sizes.
  • Added human_time() function in _human_time.py for formatting second into human-readable duration strings (e.g. 500 ms, 1 min, 2 hour).

Changed

  • Refactored humanization API into separate human_size and human_time functions.

Full Changelog: v0.1.3...v0.2.0

v0.1.3

Choose a tag to compare

@saptarshiroy39 saptarshiroy39 released this 28 Jul 12:13
275193a

[0.1.3] - 2026-07-28

Added

  • Added .python-version file 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

Choose a tag to compare

@saptarshiroy39 saptarshiroy39 released this 23 Jun 04:32
4d91947

[0.1.2] - 2026-06-19

Changed

  • Renamed internal modules size.py to _size.py and humanize.py to _humanize.py to denote them as internal implementation details, and updated imports in __init__.py.
  • Refactored humanize() logic to use a standard while loop instead of a for-else block for better readability.

Added

  • Updated documentation in README.md and SDK.md demonstrating that unit helpers fully support passing variables and expressions as arguments.

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@saptarshiroy39 saptarshiroy39 released this 23 Jun 04:30
bb2a022

[0.1.1] - 2026-06-15

Added

  • Declared PEP 561 compliance by creating the py.typed marker file for inline types.
  • Configured ruff for linting and code formatting checks.
  • Expanded package metadata in pyproject.toml (keywords, classifiers, Bug Tracker link, and documentation URL).

Changed

  • Updated pyproject.toml to use modern setuptools automatic package discovery (package finder) with the src layout.

Removed

  • Custom SizeLibError and FileTooLarge exception 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. formatting 1024**9 now correctly returns "1024 YiB" instead of "1 YiB").

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@saptarshiroy39 saptarshiroy39 released this 23 Jun 04:29
6828820

[0.1.0] - 2026-06-13

Added

  • Initial release of the sizelib package.
  • New package entry point src/sizelib/__init__.py.
  • Custom SizeLibError and FileTooLarge exception declarations in exceptions.py.
  • Exponent-free dynamic loop size humanization function humanize() in humanize.py with 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