bitstring module
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>
Metadata
Release files for bitstring 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bitstring-0.5.1.zip | 395.3 kB | Without provenance | Details for bitstring-0.5.1.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bitstring-0.5.1.win32.exe | Details for bitstring-0.5.1.win32.exe |
Total release size: 556.7 kB
Release files / bitstring-0.5.1.zip
| Download URL | bitstring-0.5.1.zip |
|---|---|
| Size | 395.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b552338343b29c93ed4bfeff90a1cd50b234ba076c2cc20b74098450b7b1e8ea
|
|
BLAKE2b-256 checksum How to use checksums |
47da1ce6691ac37554c6e669fc67e8a03838f9dfc798d884d72e0d344189a945
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / bitstring-0.5.1.win32.exe
| Download URL | bitstring-0.5.1.win32.exe |
|---|---|
| Size | 161.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55570b48a6509e5e9f5fa55f4376026b6d51021aed27d86a2e5e2c30d412cf19
|
|
BLAKE2b-256 checksum How to use checksums |
e0923603620e8a665f15f26ae256ebdcffcc178194bf08ab500f57e3d44ea07d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bitstring 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.