Skip to main content

Simple construction, analysis and modification of binary data.

Project description

bitstring is a pure Python module designed to help make the creation and analysis of binary data as painless as possible.

BitString objects can be constructed from integers, hexadecimal, octal, binary, strings or files. They can be sliced, joined, reversed, inserted into, overwritten, etc. with simple functions or slice notation. They can also be read from, searched, and navigated in, similar to a file or stream.

Installation

To install run the setup.py script with the ‘install’ argument:

python setup.py install

This should put bitstring.py in your site-packages directory. You may need to run this with root privileges on Unix-like systems.

Alternatively just copy the bitstring.py file to where you want it!

If you’re using Windows then there is an installer available from the downloads tab on the project’s homepage.

Unit Tests

To run the unit tests:

python test_bitstring.py

The unit tests should all pass for Python 2.4, 2.5 and 2.6.


The bitstring module has been released as open source under the MIT License. Copyright (c) 2009 Scott Griffiths

For more information see the project’s homepage on Google Code: <http://python-bitstring.googlecode.com>

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

bitstring-1.0.0.zip (471.8 kB view details)

Uploaded Source

File details

Details for the file bitstring-1.0.0.zip.

File metadata

  • Download URL: bitstring-1.0.0.zip
  • Upload date:
  • Size: 471.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bitstring-1.0.0.zip
Algorithm Hash digest
SHA256 54fc8d6a1c4a4ecc045c11cbbd49544b15977558d2f043b633b5d2ca9a6ee99f
MD5 8392e6bfcd6e09eb5e226df7bc40d9de
BLAKE2b-256 70ed2e6415620f3981428dea2ca74d36de705ad38e8a62835d77335094df29a1

See more details on using hashes here.

Supported by

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