Skip to main content

yEnc Module for Python modified for SABnzbd

Project description

SABYenc 3 - yEnc Decoding for Python 3

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 sabyenc3 --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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sabyenc3-4.0.0.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distributions

sabyenc3-4.0.0-cp37-cp37m-win_amd64.whl (11.9 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

sabyenc3-4.0.0-cp37-cp37m-win32.whl (11.1 kB view hashes)

Uploaded CPython 3.7m Windows x86

sabyenc3-4.0.0-cp37-cp37m-manylinux1_x86_64.whl (21.2 kB view hashes)

Uploaded CPython 3.7m

sabyenc3-4.0.0-cp37-cp37m-manylinux1_i686.whl (20.5 kB view hashes)

Uploaded CPython 3.7m

sabyenc3-4.0.0-cp36-cp36m-win_amd64.whl (11.9 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

sabyenc3-4.0.0-cp36-cp36m-win32.whl (11.1 kB view hashes)

Uploaded CPython 3.6m Windows x86

sabyenc3-4.0.0-cp36-cp36m-manylinux1_x86_64.whl (20.2 kB view hashes)

Uploaded CPython 3.6m

sabyenc3-4.0.0-cp36-cp36m-manylinux1_i686.whl (19.5 kB view hashes)

Uploaded CPython 3.6m

sabyenc3-4.0.0-cp36-cp36m-macosx_10_13_x86_64.whl (5.9 kB view hashes)

Uploaded CPython 3.6m macOS 10.13+ x86-64

sabyenc3-4.0.0-cp35-cp35m-win_amd64.whl (11.9 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

sabyenc3-4.0.0-cp35-cp35m-win32.whl (11.1 kB view hashes)

Uploaded CPython 3.5m Windows x86

sabyenc3-4.0.0-cp35-cp35m-manylinux1_x86_64.whl (20.0 kB view hashes)

Uploaded CPython 3.5m

sabyenc3-4.0.0-cp35-cp35m-manylinux1_i686.whl (19.3 kB view hashes)

Uploaded CPython 3.5m

sabyenc3-4.0.0-cp34-cp34m-manylinux1_x86_64.whl (19.8 kB view hashes)

Uploaded CPython 3.4m

sabyenc3-4.0.0-cp34-cp34m-manylinux1_i686.whl (19.1 kB view hashes)

Uploaded CPython 3.4m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page