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%.
Release | Stable | Testing |
---|---|---|
Fedora Rawhide | 1.3.1-1.fc35.19 | - |
Fedora 35 | 1.3.1-1.fc35.19 | - |
Fedora 34 | 1.3.1-1.fc34.17 | - |
You can contact the maintainers of this package via email at
python-bitmath dash maintainers at fedoraproject dot org
.