Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A memory-efficient packed representation for 2D bit arrays

Project Description

Version 2.0 is a Python 3.x compliant version of the Bit2DArray class. This version should work with both Python 2.x and Python 3.x.

This module utilizes the facilities of the BitVector class (Version 3.0 or above) to create a memory efficient representation for 2D bit arrays.

The class supports the following operators/methods:

  • __str__
  • __getitem__
  • __setitem__
  • __getslice__
  • __eq__
  • __ne__
  • __and__
  • __or__
  • __xor__
  • __invert__
  • deep_copy
  • size
  • read_bit_array_from_char_file
  • read_bit_array_from_binary_file
  • write_bit_array_to_char_file
  • write_bit_array_to_packed_binary_file
  • shift
  • dilate
  • erode
Release History

Release History

This version
History Node


History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting