bcodebencode encoder and decoder | |
Download |
bcode Ranking & Summary
Advertisement
bcode Tags
bcode Description
bencode encoder and decoder bcode is a Python module that contains a pair of functions that provide bencoding and bdecoding functionalities.bencode is the format used for .torrent BitTorrent files.Installation:cd into the desired lib directory and type wget https://github.com/medecau/bcode/raw/master/bcode.py or manually download it to the desired destinationBasic Usage: import bcodeor if you only need to read or write from bcode import bdecode from bcode import bencodethen you can bencode('string') bencode(2010) bencode() bencode({'name': 'jimmy', 'age': 45})or bdecode('3:car') bdecode('i42e') bdecode('li10ei20ei30ee') bdecode('d5:color3:red4:kind3:hote')or look at test.py to have an idea of what these functions can do. Requirements: · Python
bcode Related Software