BSD Ports

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

SystemPortVersion
FreeBSDmath/py-bitmath2.1.1
DragonFlymath/py-bitmath1.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.1.12.1.11.3.3.11.3.3.1_12.1.1
FreeBSD:14:quarterly2.1.12.1.1n/a1.3.3.1_12.1.1
FreeBSD:15:latest2.1.12.1.1n/a1.3.3.1_11.3.3.1_1
FreeBSD:15:quarterly2.1.12.1.1n/an/an/a
FreeBSD:16:latest2.1.12.1.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 19
Run dependencies 7

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
bitmath-2.1.1.tar.gz11200156f2cda86b1f0aa6470f4aaa90f82ef029f0e16c31b66f0fdd9d67613bc5e9f0
Master sites 1
  • PYPI

Commit history 4

DateCommitCreditsLog message
2dcc2483c1 Muhammad Moinur Rahman math/py-bitmath: Update version 2.1.0=>2.1.1
Changelog: https://github.com/timlnx/bitmath/releases/tag/2.1.1
91f28886ca Muhammad Moinur Rahman math/py-bitmath: Update version 2.0.1=>2.1.0
Changelog: https://github.com/timlnx/bitmath/releases/tag/2.1.0
48e72d1da7 Muhammad Moinur Rahman math/py-bitmath: Update version 2.0.0=>2.0.1
Changelog: https://github.com/timlnx/bitmath/releases/tag/2.0.1
b0b7f0d38f Muhammad Moinur Rahman math/py-bitmath: Update version 1.4.0.1=>2.0.0
Changelog: https://github.com/timlnx/bitmath/releases/tag/2.0.0