Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Utils for the Python bitarray module

Project description


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.


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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bautils, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size bautils-0.1.4.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page