{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/4"}],"enrichment":{"capability":"Tibs provides immutable and mutable bit-level data structures (Tibs and Mutibs) for working with binary data as sequences of individual bits, supporting typed field extraction, bitwise operations, and searching without byte alignment constraints.","skillfed_tags":["binary-data","rust-backed","bitwise-operations"],"use_cases":["Parse network packets or protocol messages where fields span non-byte-aligned bit ranges.","Decode instruction formats (e.g., eBPF) with mixed endianness and scattered register fields.","Implement large bitsets for algorithms like the Sieve of Eratosthenes or fingerprint comparisons.","Extract and patch binary data in-place without converting to intermediate representations.","Read typed fields (floats, integers) of any bit length from binary streams or files.","Perform bitwise set operations (intersection, union, XOR) on large bit sequences efficiently."],"what_it_does":"Tibs is a Rust-backed Python library for working with binary data at the bit level rather than the byte level. It provides two main classes: Tibs (immutable bit sequence, analogous to bytes) and Mutibs (mutable variant, analogous to bytearray). The library lets you treat binary data as a container of bits that you can slice, concatenate, and search using familiar Python patterns, extract typed fields (integers, floats, bytes) of arbitrary bit length without manual bit-shifting, and perform bitwise algebra and set operations efficiently.\n\nCommon use cases include parsing packet formats, instruction encodings, register layouts, and compressed data where fields don't align to byte boundaries. The library handles little-endian ordering and LSB0 field labeling transparently. A Reader class wraps Tibs to maintain bit position during stream parsing. Tibs is written entirely in Rust with PyO3 bindings and is used to power the bitstring library; it has no runtime dependencies and supports Python 3.11 and later.","worth_installing":"Yes. Tibs is actively maintained, stable (version 2.0), has no known vulnerabilities, and offers a genuinely useful abstraction for bit-level binary work that Python's standard library and most alternatives don't provide cleanly. Medium install friction is acceptable given the compiled-wheel coverage. Permissive MIT license poses no restrictions. Recommended for any project requiring non-byte-aligned binary parsing or bitwise operations."},"id":"tibs","links":{"html":"https://skillfed.io/packages/tibs","md":"https://skillfed.io/packages/tibs.md","pypi":"https://pypi.org/project/tibs/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-13","license_spdx":null,"license_treatment":"permissive","name":"tibs","python_support":"supports_current","summary":"A sleek Python library for binary data."},"popularity":{"monthly_downloads":4306389,"position":2337,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.1"}
