SABYenc - yEnc Decoding for Python
Modified the original yenc module by Alessandro Duca firstname.lastname@example.org for use within SABnzbd.
The module was extended to do header parsing and full yEnc decoding from a Python list of chunks, the way in which data is retrieved from usenet. This is particularly beneficial when SSL is enabled, which limits the size of each chunk to 16K. Parsing these chunks in python is much more costly. Additionally, this module releases Python's GIL during decoding, greatly increasing performance of the overall download process.
As simple as running:
pip install sabyenc --upgrade
When you want to compile from sources, you can run in the
python setup.py install
For testing we use
pytest (install via
pip install pytest) and test can simply be executed by browsing to the
sabyenc directory and running: