{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/4"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"},{"label":"Internet","url":"https://skillfed.io/packages/category/internet/3"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"},{"label":"Information Analysis","url":"https://skillfed.io/packages/category/scientific-engineering-information-analysis/2"},{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/2"},{"label":"Systems Administration","url":"https://skillfed.io/packages/category/system-systems-administration"},{"label":"Filters","url":"https://skillfed.io/packages/category/text-processing-filters"},{"label":"Filesystems","url":"https://skillfed.io/packages/category/system-filesystems"},{"label":"Unit","url":"https://skillfed.io/packages/category/software-development-testing-unit"},{"label":"Acceptance","url":"https://skillfed.io/packages/category/software-development-testing-acceptance"},{"label":"File Sharing","url":"https://skillfed.io/packages/category/communications-file-sharing"}],"enrichment":{"capability":"bitmath converts and performs arithmetic on file sizes across SI and NIST prefix units (kB to YiB), with support for human-readable formatting, rich comparisons, and capacity math.","skillfed_tags":["file-size-conversion","unit-conversion","storage-math"],"use_cases":["Convert storage sizes between SI and NIST units for display or calculation in file management tools.","Calculate how many files or chunks fit on a device using floor division and modulo operations.","Format file sizes for human-readable output in logs, reports, or interactive shells.","Perform arithmetic on sizes (subtract, divide, compare) without manual unit conversion.","Parse and validate file size input from command-line arguments or user configuration."],"what_it_does":"bitmath is a Python library for working with file sizes in different unit systems. It handles conversion between SI units (kB, MB, GB) and NIST binary units (KiB, MiB, GiB, and up to YiB), letting you treat sizes as first-class objects that support arithmetic, comparison, and formatting. The library includes no external dependencies beyond Python's standard library.\n\nYou use it when you need to convert between unit systems, perform capacity calculations (like fitting files on a drive), or display file sizes in human-readable form. It supports floor division and modulo for capacity planning (e.g., how many 300 MiB chunks fit in 1 GiB), rich comparisons so 1024 Bytes equals 1 KiB, and integrates with Python's format protocol and argparse for CLI tools.","worth_installing":"Yes. bitmath is actively maintained, has no dependencies, installs cleanly, carries permissive MIT licensing, and solves a concrete problem\u2014file size unit conversion and arithmetic\u2014that many tools need. Use it whenever you work with storage sizes and want to avoid manual conversion logic or string parsing."},"id":"bitmath","links":{"html":"https://skillfed.io/packages/bitmath","md":"https://skillfed.io/packages/bitmath.md","pypi":"https://pypi.org/project/bitmath/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-25","license_spdx":null,"license_treatment":"permissive","name":"bitmath","python_support":"supports_current","summary":"Pythonic module for representing and manipulating file sizes with different prefix notations (file size unit conversion)"},"popularity":{"monthly_downloads":396904,"position":6967,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.1.1"}
