semvec/pypi-packages huggingface dataset:
bencode-cpp 0.0.4a1
A fast and correct bencode serialize/deserialize library
License: MIT
Requires Python: <4.0,>=3.8
Keywords: bencode, bittorrent, bit-torrent, serialize, deserialize, p2p

# bencode-c

bencode serialize/deserialize written with c++, with pybind11.

```shell
pip install bencode-cpp
```

```python
import bencode_cpp

# NOTICE: we decode bencode bytes to bytes, not str.
assert bencode_cpp.bdecode(b'd5:hello5:worlde') == {b'hello': b'world'}

assert bencode_cpp.bencode(...) == b'...'
```