This is the python 3 port for the official bencode (Bitorrent) encoding and decoding library. This project supports both python 2 and python 3.
This port of bencode library is also available on pypi and can be easily installed using the following command.
pip install bencode-python3
Simply import the functions that you want to use from this library
from bencode import bencode
encoded_value = bencode(some_value_to_encode)
If you have any issues or question using this library, you can holla at me on twitter: @mytharora