{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/4"}],"enrichment":{"capability":"bitstring provides Python classes and functions to create, manipulate, and interpret binary data at the bit level, with support for multiple input formats and bit-level operations like slicing, searching, and packing.","skillfed_tags":["binary-data","bit-manipulation","protocol-parsing"],"use_cases":["Parse binary network protocols or file formats by creating bitstrings from hex/binary and extracting fields via bit-level slicing.","Pack and unpack structured binary data (e.g., multi-format fields) using the pack function with endianness control.","Search for and replace bit patterns within binary data, useful for binary data transformation pipelines.","Read and interpret binary streams sequentially, tracking position and reading typed chunks (uint, float, etc.).","Create and manipulate arrays of fixed-length bitstrings for efficient storage of homogeneous binary records."],"what_it_does":"bitstring is a Python library for working with binary data at the bit level. It lets you create bitstrings from hex, octal, binary, bytes, integers, floats, and files, then manipulate them through slicing, searching, replacing, and packing operations. The library provides idiomatic Python classes (Bits, BitArray, BitStream) and utility functions, making bit-level work feel natural rather than low-level.\n\nThe package is production-stable and has been actively maintained since 2006. It depends on bitarray and tibs (a newer Rust-based rewrite of the core, currently in beta). The library supports Python 3.8 through 3.14 and is widely used\u2014it ranks in the top 5000 PyPI packages by download volume. It's particularly useful for tasks like binary protocol parsing, data serialization, and bit manipulation in embedded or network contexts.","worth_installing":"Yes. bitstring is production-stable, actively maintained, has no known vulnerabilities, and low install friction. It's the standard choice for bit-level binary manipulation in Python. Install it if you need to work with binary protocols, data formats, or bit-level operations; the API is well-documented and the library is widely trusted in the community."},"id":"bitstring","links":{"html":"https://skillfed.io/packages/bitstring","md":"https://skillfed.io/packages/bitstring.md","pypi":"https://pypi.org/project/bitstring/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-10","license_spdx":null,"license_treatment":"permissive","name":"bitstring","python_support":"supports_current","summary":"Simple construction, analysis and modification of binary data."},"popularity":{"monthly_downloads":5910491,"position":2014,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"4.4.0"}
