Metadata-Version: 2.4
Name: bitbuf
Version: 0.1.0
Summary: Mutable LSB-first bit buffer utilities.
Author: Anthony Donlon
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Provides-Extra: test
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# bitbuf

A small mutable, LSB-first bit buffer for Python.

```python
from bitbuf import bitbuf

buf = bitbuf.from_bytes(b"\x34\x12")

buf[4:12] = 0xAB
buf <<= 3
buf.append_msb(4, 0b1010)

value = int(buf)
payload = bytes(buf)
```

Bit position `0` is the least significant bit. Byte conversion uses
little-endian order.

## Development

```bash
python -m pip install -e ".[test]"
python -m pytest
```
