Skip to main content

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

Project description

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.

License

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

Files

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

Installing

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

python setup.py install

Usage

bitfile.py is fully documented with docstrings. Use your favorite tool for generating documentation from docstrings.

sample.py demonstrates usage of each of the BitFile methods.

sample.py also contains doctest information. The doctest may be excuted with the following command:

python sample.py -v

History

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

ToDo

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

Project details


Download files

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

Source Distribution

bitfile-0.2.tar.gz (20.8 kB view details)

Uploaded Source

File details

Details for the file bitfile-0.2.tar.gz.

File metadata

  • Download URL: bitfile-0.2.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bitfile-0.2.tar.gz
Algorithm Hash digest
SHA256 b8e5fe9ab077f393978659e15cfe1d38a5f822ca5250947fb27149427c953db3
MD5 1c8f402a4a092bd3efae2c5ea1725972
BLAKE2b-256 d99dfe420b6099125b6c618da4a98d47ee257a9bcf925ab576907bf8d8d5b0c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page