Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trawa-0.5.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trawa-0.5.0-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file trawa-0.5.0.tar.gz.

File metadata

  • Download URL: trawa-0.5.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for trawa-0.5.0.tar.gz
Algorithm Hash digest
SHA256 40ab6c7b80a68b396f2181f0f511f65800383ca26adf28b50406d83be8596432
MD5 8143c493acc4cfdb416ba3cb01cc1c93
BLAKE2b-256 59e26e848d4f957704ee651450010ffe1f5a8070f8f0c13c501a63b65e362bbb

See more details on using hashes here.

File details

Details for the file trawa-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: trawa-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for trawa-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fd4f18cf70abda796f465c5f841acc9fa13d8a8277f1866cf1d72379d61c3c29
MD5 ce41550b7c221e7d866635d37a1914e1
BLAKE2b-256 4daf69ff46e55c92a696fc04f9549a81255ea4163a285ecdd60ff8be019368d5

See more details on using hashes here.

Release history Release notifications | RSS feed

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

This release

0.5.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page