tibs is a sleek Python library designed for creating, interpreting, and manipulating binary data. Written 100% in Rust for excellent performance, it provides efficient handling of bit sequences. The current version is 0.6.0. Releases appear to be event-driven rather than on a fixed cadence, with a focus on performance and robust binary data operations.
pip install tibsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create immutable `Tibs` and mutable `Mutibs` instances from various sources like binary strings, hexadecimal strings, and bytes. It also shows how to efficiently combine multiple `Tibs` objects using `from_joined`.
For efficient concatenation of multiple `Tibs` instances, use the `Tibs.from_joined()` class method. If you require a mutable sequence of bits, use the `Mutibs` class instead, which supports in-place modifications.
Always use `0b` for binary strings (e.g., `Tibs('0b0110')`) and `0x` for hexadecimal strings (e.g., `Tibs('0xabc')`) when passing them to the `Tibs` constructor. Alternatively, use the explicit class methods like `Tibs.from_bin('0110')` or `Tibs.from_hex('abc')`.Install the 'tibs' library using pip: `pip install tibs`
Install the Rust toolchain using `rustup.rs` before attempting to install `tibs`. Follow instructions at `https://rustup.rs/`.
Use the correct class name `BitVec` when importing: `from tibs import BitVec`
Ensure you provide a string value to `BitVec.from_string()`. For example, use `BitVec.from_string(str(123))` if you intend to convert an integer to its string representation.
No dependency data recorded yet.