Skip to content

Python yEnc package optimized for use within SABnzbd

License

Notifications You must be signed in to change notification settings

jsbronder/sabyenc

 
 

Repository files navigation

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

About

Python yEnc package optimized for use within SABnzbd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 39.5%
  • Python 36.9%
  • Roff 23.0%
  • Shell 0.6%