put.io-aria2c-downloader
Python script that sends put.io download links to aria2c for download
Install
This setup assumes you have aria2c up with rpc running
pip install putio-downloader
Usage
Usage: putio-download [OPTIONS]
CLI entrypoint for put.io downloader
Options:
--oauth-token TEXT [required]
--keep-folder-structure
--root-watch-dir INTEGER [required]
--aria2c-secret-token TEXT [required]
--incomplete-dir TEXT [required]
--complete-dir TEXT [required]
--watch-folders TEXT [required]
--rpc-url TEXT [required]
--version
-q, --quiet
-v, --verbose
--config FILE Read configuration from PATH.
--help Show this message and exit.
Configuration
If you don't want to pass those options on the command line, you can work with a config file to pass all or just some of the following:
oauth_token = 'XXXXXXXX'
keep_folder_structure = 'true'
root_watch_dir = 0
incomplete_dir = '/download/incomplete'
aria2c_secret_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
complete_dir = '/download/complete'
rpc_url = 'https://example.com:6800/rpc'
watch_folders = ['isos', 'news', 'videos']
For windows, directories must follow windows' directory formatting, ie.
incomplete_dir = 'C:\\download\\incomplete'
complete_dir = 'C:\\download\\complete'
crontab
Run the download script on an interval so you don't miss out on any of your files
*/10 * * * * putio-download --config ~/myconfig.ini >> ~/putio.log 2>&1
To prevent multiple instances of putio-download from running, consider using a wrapper script like the following:
#!/bin/bash
COUNT=`ps -ef | grep putio-download | grep -v grep | wc -l`
if [ $COUNT == 0 ]; then
putio-download --config ~/config.ini
else
echo "already running..."
fi
If you do use a script like this, make sure to update the crontab to point to it
Metadata
Release files for putio-downloader 3.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| putio-downloader-3.1.4.tar.gz | 6.0 kB | Without provenance | Details for putio-downloader-3.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| putio_downloader-3.1.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for putio_downloader-3.1.4-py2.py3-none-any.whl |
Total release size: 14.6 kB
Release files / putio-downloader-3.1.4.tar.gz
| Download URL | putio-downloader-3.1.4.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b14f3c399c7ec24386b59cdd456f177d9fa0ab78cbdcc09c50720699bb57757a
|
|
BLAKE2b-256 checksum How to use checksums |
ded8a0b1090f214bffb1fb4fe9a0e872a213fe3637ccacc6965cec2127f89808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|
Release files / putio_downloader-3.1.4-py2.py3-none-any.whl
| Download URL | putio_downloader-3.1.4-py2.py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d44f3a77e665be5c429b9432b25f110635dd385166698d538657fad0e8f7e388
|
|
BLAKE2b-256 checksum How to use checksums |
748a6e1efce2e34f94100c2c066829917853eeeef8380dc56ccd299e1a403bc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|
Security for putio-downloader 3.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.