Skip to main content

python-bautils

bautils is a Python module implementing some useful helper functions for working with the Python bitarray module. Specifically, bautils supports adding (and, coming soon) other basic arithmetic operations on bitarrays as if they were arbitrary length binary numbers, something the bitarray package itself doesn’t seem to support.

It also contains helper methods to convert between the binary arrays in the pure Python bitstring module

I opted to put these functions in a new module; none are terribly complicated to implement, so they’re essentially just a set of convenient wrappers.

Unit tests are also a work in progress.

Changelog:

This logs changes starting from version 0.1.1.

Version 0.1.4

  • Fix another namespace issue in minb and maxb functions.

Version 0.1.3

  • Add tests for the random, minb, and maxb functions, mostly completing tests.

  • Fix namespace collision issue between bautils.random and random module.

Version 0.1.2

  • Adds unit tests for left and right shift functions.

  • Fixes bug where left/right shifts modified their input.

Release files for bautils 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bautils 0.1.4
File Size Uploaded
bautils-0.1.4.tar.gz 5.7 kB Details

Release files / bautils-0.1.4.tar.gz

Download URL bautils-0.1.4.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e9e3dd5fda7761ee4527c8441b6d7963d004a8152dcef2a6de4b4e51d60b7d42
BLAKE2b-256 checksum
How to use checksums
e364c88f1f3024f9db2171d3cf070fb85ac8fb9df0f2631163f0917bf82202d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page