Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

trim21/bencode-cpp

Repository files navigation

bencode-cpp

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

pip install bencode-cpp
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'...'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published