summaryrefslogtreecommitdiff
path: root/math/py-bitmath/pkg-descr
blob: 40af4c2516b7919b591f22ed07d08a03bfee8920 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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