math/py-bitmath 2.1.1 FreeBSD
Represent and manipulate file sizes with different prefix notations
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
2dcc2483c1- License
- MIT
- Categories
- math, python
- Package size
- 40.2 KiB, 226.7 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 |
|---|---|---|
| FreeBSD | math/py-bitmath | 2.1.1 |
| DragonFly | math/py-bitmath | 1.3.3.1_1 |
Install
Binary package:
pkg install py312-bitmath
From the ports tree:
cd /usr/ports/math/py-bitmath/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-bitmath>0:math/py-bitmath
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.1.1 | 2.1.1 | 1.3.3.1 | 1.3.3.1_1 | 2.1.1 |
| FreeBSD:14:quarterly | 2.1.1 | 2.1.1 | n/a | 1.3.3.1_1 | 2.1.1 |
| FreeBSD:15:latest | 2.1.1 | 2.1.1 | n/a | 1.3.3.1_1 | 1.3.3.1_1 |
| FreeBSD:15:quarterly | 2.1.1 | 2.1.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.1.1 | 2.1.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>0: devel/py-hatchling
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| bitmath-2.1.1.tar.gz | 112001 | 56f2cda86b1f0aa6470f4aaa90f82ef029f0e16c31b66f0fdd9d67613bc5e9f0 |
Master sites 1
- PYPI