{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"}],"enrichment":{"capability":"Converts between binary (IEC) and decimal (SI) units for storage sizes, with support for exact decimal arithmetic and automatic unit scaling.","skillfed_tags":["unit-conversion","storage-metrics"],"use_cases":["Display hard drive capacity in human-readable form, converting manufacturer specs (decimal TB) to actual storage (binary TiB).","Format network traffic or throughput metrics for logs or dashboards with automatic unit selection.","Calculate storage requirements in infrastructure-as-code or Kubernetes manifests, ensuring unit consistency.","Convert between binary and decimal units in scientific or engineering calculations where precision matters.","Validate or normalize storage quantities in APIs or configuration files."],"what_it_does":"binary is a lightweight unit-conversion library that translates between binary (IEC-standard: KiB, MiB, GiB, etc.) and decimal (SI-standard: KB, MB, GB, etc.) storage units. It solves the common problem of converting between what manufacturers advertise (decimal terabytes) and what operating systems report (binary tebibytes), and vice versa. The package exposes a single function, convert_units(), which accepts a number, an input unit, and optionally a target unit, and returns both the converted value and a human-readable unit string.\n\nThe library supports automatic scaling to the highest appropriate unit, optional exact arithmetic via Python's decimal.Decimal module, and negative values. It conforms to IEC 80000-13 and SI standards, making it suitable for storage calculations, system monitoring, and any context where precise unit conversion matters. With no external dependencies and support for Python 3.9 through 3.13, it installs cleanly and runs on both CPython and PyPy.","worth_installing":"Yes, if you need reliable unit conversion between binary and decimal storage units. The package is simple, dependency-free, and permissively licensed. The aging maintenance status (last release 429 days ago) is a minor concern for a stable, narrow-scope library with no known vulnerabilities, but check whether active development matters for your use case. Suitable for production use in storage, monitoring, or infrastructure contexts."},"id":"binary","links":{"html":"https://skillfed.io/packages/binary","md":"https://skillfed.io/packages/binary.md","pypi":"https://pypi.org/project/binary/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-11","license_spdx":"MIT OR Apache-2.0","license_treatment":"permissive","name":"binary","python_support":"supports_current","summary":null},"popularity":{"monthly_downloads":241411,"position":8877,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.2"}
