$npx skillfedfor your agent

binary

With conditionsPyPI UtilitiesReleased Jun 2025241.4K downloads / moMIT OR Apache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — binary-1.0.2-py3-none-any.whl
v1.0.2 · released 2025-06-11 · Python >=3.9

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Low friction installation with no runtime dependencies.
  • Maintenance is aging—last release was 429 days ago, though the repository remains active and supports current Python versions (3.9–3.13).

License · maintenance · safety

MIT OR Apache-2.0 (permissive) — Dual-licensed under MIT or Apache-2.0 at your option, both permissive. No restrictions on commercial or private use.

last release 2025-06-11 (429 days) · last repo commit 2025-06-11 · 10 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 241,411 downloads/mo, #8,877 on PyPI

Verify before relying

pip install binary

from binary import BinaryUnits, DecimalUnits, convert_units

# Convert 1536 KB to MB in binary units
amount, unit = convert_units(1536, BinaryUnits.KB, BinaryUnits.MB)
print(f"{amount} {unit}")  # Output: 1.5 MiB
  • Whether the package handles edge cases like very large numbers or unusual unit combinations reliably.
  • Performance characteristics when exact=True (using decimal.Decimal) on large datasets.
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

binary on PyPI

Before you install

Low friction installation with no runtime dependencies. Maintenance is aging—last release was 429 days ago, though the repository remains active and supports current Python versions (3.9–3.13).

Requires Python 3.9 or later.

License in practice

Dual-licensed under MIT or Apache-2.0 at your option, both permissive. No restrictions on commercial or private use.

Quickstart

pip install binary

from binary import BinaryUnits, DecimalUnits, convert_units

# Convert 1536 KB to MB in binary units
amount, unit = convert_units(1536, BinaryUnits.KB, BinaryUnits.MB)
print(f"{amount} {unit}")  # Output: 1.5 MiB

Verify before relying

  • Whether the package handles edge cases like very large numbers or unusual unit combinations reliably.
  • Performance characteristics when exact=True (using decimal.Decimal) on large datasets.

Package facts

LicenseMIT OR Apache-2.0 permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 429 days since the last release
Last repo commit
First released
Downloads241,411 / month, #8,877 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Evidence: binary-1.0.2-py3-none-any.whl

Tags

Capabilities
binary decimal unit conversionstorage size conversionIEC SI unitsbytes to megabyteshuman readable file sizesunit conversion librarybinary prefix conversion
Topics
unit-conversionstorage-metrics

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “binary decimal unit conversion”

  • binaryConverts between binary (IEC) and decimal (SI) units for storage…
  • mgrsConverts between MGRS (Military Grid Reference System) coordinates…
  • lat-lon-parserParses latitude-longitude coordinate strings in multiple formats…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also bitmath · prefixed · hurry.filesize · ansys-units · Pint · measurement · unyt · isqx · humanreadable · hepunits