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.


This module only works with Python 3, the source code of the Python 2 version (sabyenc) can be found here.

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 -r tests/requirements.txt) 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.

Files for sabyenc3, version 4.0.1
Filename, size File type Python version Upload date Hashes
Filename, size sabyenc3-4.0.1-cp34-cp34m-manylinux1_i686.whl (19.2 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp34-cp34m-manylinux1_x86_64.whl (19.9 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp35-cp35m-manylinux1_i686.whl (19.4 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp35-cp35m-manylinux1_x86_64.whl (20.1 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp35-cp35m-win32.whl (11.2 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp35-cp35m-win_amd64.whl (12.0 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp36-cp36m-macosx_10_13_x86_64.whl (6.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp36-cp36m-manylinux1_i686.whl (19.5 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp36-cp36m-manylinux1_x86_64.whl (20.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp36-cp36m-win32.whl (11.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp36-cp36m-win_amd64.whl (12.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp37-cp37m-manylinux1_i686.whl (20.5 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp37-cp37m-manylinux1_x86_64.whl (21.2 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp37-cp37m-win32.whl (11.2 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp37-cp37m-win_amd64.whl (12.0 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp38-cp38-manylinux1_i686.whl (19.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp38-cp38-manylinux1_x86_64.whl (20.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp38-cp38-win32.whl (11.3 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sabyenc3-4.0.1-cp38-cp38-win_amd64.whl (12.1 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sabyenc3-4.0.1.tar.gz (10.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page