bencode.py
bencode.py copied to clipboard
Simple bencode parser (for Python 2, Python 3 and PyPy)
Might it be possible to switch to the PSF license?
Version: `bencode.py==2.1.0` Test: ``` bencode.bencode(None) ``` expected: `b'0:'` actual: ``` >>> bencode.bencode(None) Traceback (most recent call last): File "", line 1, in File "./.env/lib/python3.8/site-packages/bencode/__init__.py", line 304, in bencode encode_func[type(value)](value, r)...
While preparing a Gentoo ebuild for this package, I encountered the following setuptools warnings: - Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore...
Is this project licensed under BitTorrent version 1.1 or version 1.0? Line 3: [Version 1.1](https://github.com/fuzeman/bencode.py/blob/master/LICENSE#L3) Line 140: [The contents of this file are subject to the BitTorrent Open Source License...
The documentation is inconsistent as to read/bread, write/bwrite, but it doesn't matter as none of them exist.
Hey, I'm having some difficulty in getting bencode working: ```bash pip install bencode.py ``` ```python import bencode bencode.encode({'title': 'Example'}) # --------------------------------------------------------------------------- # AttributeError Traceback (most recent call last) # in...
Thanks for the library ! Let's say we're reading from a port/stream that has multiple concatenated bencode messages. Is there a way to handle that efficiently in this bencode library...