math/py-bitmath 1.3.3.1_1 DragonFly
Represent and manipulate file sizes with different prefix notations
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- math, python
- Package size
- 33.2 KiB, 196.5 KiB installed
Description
bitmath simplifies many facets of interacting with file sizes in various units. Functionality includes:
- Converting between SI and NIST prefix units (kB to GiB)
- Converting between units of the same type (SI to SI, or NIST to NIST)
- Automatic human-readable prefix selection (like in hurry.filesize)
- Basic arithmetic operations (subtracting 42KiB from 50GiB)
- Rich comparison operations (1024 Bytes == 1KiB)
- bitwise operations (<<, >>, &, |, ^)
- argparse integration
- progressbar integration
- String parsing
- Sorting
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | math/py-bitmath | 1.3.3.1_1 |
| FreeBSD | math/py-bitmath | 2.1.1 |
Install
Binary package:
pkg install py311-bitmath
From DPorts:
cd /usr/dports/math/py-bitmath && make install clean
Dependencies
Run dependencies 2
No port depends on this one.