Skip to main content

Various scripts to manage transmission

Project description

A set of scripts and functions to help managing a [Transmission](https://transmissionbt.com/) instance via its RPC interface.

Included Scripts

Below is a list of the scripts along with simple descriptions of their functionality.

ts_clean.py

This script will scan active torrents for those which qualify to be removed from the client. This tool reads in the config file and uses the tracker rules definitions defined in there to make decisions as to what to remove.

ts_cli.py

A unix shell like interpreter. You can chan commands together similar to using pipes in any standard unix-like shell. Filters and commands are separated by | characters.

The main initial command to use is ls. If you give no arguments it will just list out all torrents, similar to ls on a unix command line listing files.

Some filters available:

  • Filter by name: n=prefix_to_search_for

  • Filter by tracker: t=tracker_key_prefix

  • Filter by status: all, active, downloading, seeding, stopped, finished

Sorting options:

  • Sort by: id, progress, name, size, ratio

  • Reverse sort

Some Commands available:

  • start: Start all the torrents passed to it.

  • stop: Stop all the torrents passed to it.

  • count: Count the current torrents including filtering.

  • any integer: Using any positive integer will limit torrent results to that value.

  • print: print the results in a simple list

Example usage below.:

(TS@172.16.1.9:9091)> ls | n=fred | active
[548] Freddie Gibbs - 2013 - ESGN 18% 0.0 [downloading]
[549] Freddie Gibbs - 2012 - Baby Face Killa (CD) [FLAC] 10% 0.0 [downloading]
[550] Freddie Gibbs - Cold Day In Hell [FLAC] 8% 0.0 [downloading]
(TS@172.16.1.9:9091)> ls | n=fred | stop
> Stopping 3 torrents.
(TS@172.16.1.9:9091)> ls | stopped | start
> Starting 5 torrents.
(TS@172.16.1.9:9091)> ls | count
598
(TS@172.16.1.9:9091)> ls | 5 | count
5
(TS@172.16.1.9:9091)> ls | t=btn | c
296
(TS@172.16.1.9:9091)> ls | t=apo | c
110
(TS@172.16.1.9:9091)>

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

transmissionscripts-0.2.9.zip (10.6 kB view details)

Uploaded Source

File details

Details for the file transmissionscripts-0.2.9.zip.

File metadata

File hashes

Hashes for transmissionscripts-0.2.9.zip
Algorithm Hash digest
SHA256 54d4cf5eef015d3b4054ce729bbfc299a84e9eae97481ebd2182a8161352232f
MD5 fb88a7780a26c9da184aa999fe27f0c2
BLAKE2b-256 1d8c3e2988a7392420a646e8dfb52cadfbeef2c57d082c5cc1bd80c72121d180

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page