bencode encoder and decoder
Python
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
bcode.py
benchmarks.py
setup.py
tests.py
tox.ini

README.md

Install:

pip install bcode

Use:

from bcode import bdecode
print bdecode(open('foo.torrent').read())

Documentation:

bencode(input)

Encode python types to bencode format.

bdecode(input)

Decode strings from bencode format to python value types.

Learn more about bencode and bittorrent at: http://wiki.theory.org/BitTorrentSpecification#bencoding

Bugs & Co.

If you find bugs or new features that are not implemented you can: