a bencode parser binding build with pyo3
Project description
A bencode serialize/deserialize library based on cython
install
pip install bencode_rs
basic usage
import bencode2
assert bencode2.bdecode(b"d4:spaml1:a1:bee") == {b"spam": [b"a", b"b"]}
assert bencode2.bdecode(b"d4:spaml1:a1:bee", str_key=True) == {"spam": [b"a", b"b"]}
assert bencode2.bencode({'hello': 'world'}) == b'd5:hello5:worlde'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for bencode_rs-0.0.1-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a273b2dd11cf92a4508ae0f8b54127023277fc0b12574d10067899ae6455d9ad |
|
MD5 | 97997efaf1c333a16233ec3ee5ad4058 |
|
BLAKE2b-256 | 528c757eabe9f85bf774ff9c726d904cbbdd94f6bab3c00d3844a3dd104d2a89 |