Python yEnc package optimized for use within SABnzbd
Clone or download

README.md

SABYenc - yEnc Decoding for Python

Modified the original yenc module by Alessandro Duca alessandro.duca@gmail.com 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.

Installing

As simple as running:

pip install sabyenc --upgrade

When you want to compile from sources, you can run in the sabyenc directory:

python setup.py install

Testing

For testing we use pytest (install via pip install pytest) and test can simply be executed by browsing to the sabyenc directory and running:

pytest