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 matching 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. When a new torrent is detected for any of the watch_path, the processing is done sequentially and will stop at the first match for file_mask.
Note: For the complete list of rpc parameters, see Transmission RPC proto spec <https://github.com/transmission/transmission/wiki/RPC-Protocol-Specification>.
INSTALL / USE
You can install by cloning the repository or if you have pip:
pip install 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.10.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa27f3e1e840e0bdf3ad3d54f1d0627e4a71d573bac0aca858dd54846956c45d |
|
MD5 | de66d06481e862df2888b6286a42b062 |
|
BLAKE2b-256 | bbac523fe511e1037e5087be441e82bc7998e5911b5b7464f57c086b24356936 |