Watch directories for transmission
Project description
Watch directories to trigger transmission downloads.
Trawa is a small python script to monitor watch directories, each having a specific configuration. Any file dropped in these directories is sent to a transmission instance using rpcxml.
You can define for each directory to watch, a file mask and a set of rpc parameters to send to transmission. The following example will watch 2 directories and set a specific download_dir for each of the two categories:
dirs: - watch_path: /home/lke/torrents/linux/images file_mask: '*.torrent' descrip: Linux images rpc_params: download_dir: /downloads/linux_images - watch_path: /home/lke/torrents/audio/samples file_mask: '*.torrent' descrip: Audio samples rpc_params: download_dir: /mnt/ext4/audio/samples
Only newly created torrent files are watched. Torrent files are never removed.
Note: For the complete list of rpc parameters, see Transmission RPC proto spec <https://github.com/transmission/transmission/wiki/RPC-Protocol-Specification>.
Note: Don’t append the trailing / for watch_path
INSTALL / USE
Python3 only, untested with Python2.
You can directly install from github provided you have python3 pip:
pip3 install git+https://github.com/architek/trawa
To run:
trawa
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
Built Distribution
Hashes for trawa-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20258af83d3788d55c265afdc03d6452e780655d5de70fde0e69a8355440d905 |
|
MD5 | 0f0a616cc6838df8e7b83ff79789aafb |
|
BLAKE2b-256 | ece2e1f22d5c848f442d1b4d48471322476990b98507cf25d41966c6dd1a16be |