https://github.com/sourcepirate/python-bencode
Becode Encoder and Decoder
https://github.com/sourcepirate/python-bencode
Last synced: 28 days ago
JSON representation
Becode Encoder and Decoder
- Host: GitHub
- URL: https://github.com/sourcepirate/python-bencode
- Owner: sourcepirate
- Created: 2015-12-07T04:05:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-20T03:31:33.000Z (over 10 years ago)
- Last Synced: 2024-04-14T07:20:13.536Z (about 2 years ago)
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##python-bencode
[](https://travis-ci.org/plasmashadow/python-bencode)
Becode Encoder and Decoder
##Installation
```
pip install python-bencode
```
##Usage
```python
from bencode import Bencoder
#encoding
built_to_bencode = [1,2,3]
strs = Bencoder.encode(built_to_bencode)
#decoding
decodable = "8:announce"
obj = Bencoder.decode(decodeable)
```
##LICENSE
BSD
[](https://bitdeli.com/free "Bitdeli Badge")