Fedora Packages

python3-bitmath Subpackage of python-bitmath

Aids representing and manipulating file sizes in various prefix notations

bitmath simplifies many facets of interacting with file sizes in various units. Examples include: converting between SI and NIST prefix units (GiB to kB), converting between units of the same type (SI to SI, or NIST to NIST), basic arithmetic operations (subtracting 42KiB from 50GiB), and rich comparison operations (1024 Bytes == 1KiB), bitwise operations, sorting, automatic best human-readable prefix selection, and completely customizable formatting. In addition to the conversion and math operations, bitmath provides human readable representations of values which are suitable for use in interactive shells as well as larger scripts and applications. It can also read the capacity of system storage devices. bitmath can parse strings (like "1 KiB") into proper objects and has support for integration with the argparse module as a custom argument type and the progressbar module as a custom file transfer speed widget. bitmath is thoroughly unittested, with almost 200 individual tests (a number which is always increasing). bitmath's test-coverage is almost always at 100%.

Releases Overview

Release Stable Testing
Fedora Rawhide 1.3.1-1.fc40.27 -
Fedora 40 1.3.1-1.fc40.27 -
Fedora 39 1.3.1-1.fc39.25 -
Fedora 38 1.3.1-1.fc38.23 -
File a new bug report »
Package Info
Related Packages

You can contact the maintainers of this package via email at python-bitmath dash maintainers at fedoraproject dot org.



Sources on Pagure