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!

Module for reading/writing an arbitrary number of bits from a file.

Project Description


This archive contains a python package that includes a class implementing bitwise reading and writing for sequential files. This class is intended to be easy to follow and expand upon, though it may be used without an understanding of its implementation.


BitFile is licensed under the GNU General Public License v3. See COPYING for full license text.

Files     - Python package initializtion code for bitfile.      - Class implementing bitwise reading and writing for
sequential files.
COPYING         - GNU General Public License v3
README          - Package documentation       - Sample usage and doctest.        - distutils setup file.


This package uses distutils. The package may be installed with the following command:

python install

Usage is fully documented with docstrings. Use your favorite tool for generating documentation from docstrings. demonstrates usage of each of the BitFile methods. also contains doctest information. The doctest may be excuted with the following command:

python -v


01/14/10 - Initial release
03/04/10 - Add support for ‘r+’ (read/write) mode


  • Add constructor to convert a standard file into a BitFile.

Release History

This version
History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(20.8 kB) Copy SHA256 Hash SHA256
Source May 16, 2010

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