Skip to main content

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>

Download files

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

Source Distribution

bitstring-0.5.2.zip (449.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitstring-0.5.2.win32.exe (164.4 kB view details)

Uploaded Source

File details

Details for the file bitstring-0.5.2.zip.

File metadata

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

File hashes

Hashes for bitstring-0.5.2.zip
Algorithm Hash digest
SHA256 1007c848d48f07b1b025a213b056fd21f8636acd3a9bdcdd994ee93530f2850e
MD5 fa783a3e09d6a9915096ca8121a65d65
BLAKE2b-256 1155f2542d40271948a72a13110ab936d2cd59e08e1caf198e216260a1dd9142

See more details on using hashes here.

File details

Details for the file bitstring-0.5.2.win32.exe.

File metadata

  • Download URL: bitstring-0.5.2.win32.exe
  • Upload date:
  • Size: 164.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bitstring-0.5.2.win32.exe
Algorithm Hash digest
SHA256 7099441195f85485cae4ee65013bdca51608ebe584a721e69a5eaaaba81e0ba8
MD5 6bb3a9064682969d095247175b6ec86f
BLAKE2b-256 8bb455cabd5aa900a0a7d0c4a37f9f0adf074e33db5b8b3ddac8ca38030f06bd

See more details on using hashes here.

Release history Release notifications | RSS feed

4.4.0

2 files

4.3.1

2 files

4.3.0

2 files

4.2.3

2 files

4.2.2

2 files

4.2.1

2 files

4.2.0

2 files

4.1.4

2 files

4.1.3

2 files

4.1.2

2 files

4.1.1

2 files

4.1.0

2 files

4.0.2

2 files

4.0.1

2 files

4.0.0

2 files

4.0.0b1

2 files

3.1.9

3 files

3.1.8

3 files

3.1.7

1 file

3.1.6

3 files

3.1.5

1 file

3.1.4

1 file

3.1.3

3.1.2

1 file

3.1.1

1 file

3.1.0

1 file

3.0.2

1 file

3.0.1

1 file

3.0.0

1 file

2.2.0

1 file

2.1.1

1 file

2.1.0

1 file

2.0.3

1 file

2.0.2

1 file

1.3.0

1 file

1.2.0

1 file

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.0

1 file

This release

0.5.2 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.3

1 file

0.4.2

1 file

0.4.0

2 files

0.3.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page