File: README.md

package info (click to toggle)
python-sabyenc 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 37,904 kB
  • sloc: ansic: 482; python: 471; sh: 19; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 1,213 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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](https://github.com/sabnzbd/sabyenc/tree/sabyenc-python2).

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