{ "info": { "author": "Leigh MacDonald", "author_email": "leigh.macdonald@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Topic :: Utilities" ], "description": "===================\ntransmissionscripts\n===================\n\nA set of scripts and functions to help managing a [Transmission](https://transmissionbt.com/) instance via\nits RPC interface.\n\n----------------\nIncluded Scripts\n----------------\n\nBelow is a list of the scripts along with simple descriptions of their functionality.\n\n-----------\nts_clean.py\n-----------\n\nThis script will scan active torrents for those which qualify to be removed from the client. This\ntool reads in the config file and uses the tracker rules definitions defined in there to make decisions\nas to what to remove.\n\n---------\nts_cli.py\n---------\n\nCurrently the most interesting script, it provides a vaguely unix-y shell like interpreter. You can chan commands\ntogether similar to using pipes in any standard unix-like shell. Filters and commands are separated by | characters.\n\nThe main initial command to use is `ls`. If you give no arguments it will just list\nout all torrents, similar to ls on a unix command line listing files.\n\nSome filters available:\n\n\n- Filter by name: n=prefix_to_search_for\n- Filter by tracker: t=tracker_key_prefix\n- Filter by status: all, active, downloading, seeding, stopped, finished\n\nSorting options:\n\n- Sort by: id, progress, name, size, ratio, total speed, up/dl speed, status, queue position, age\n- Reverse sort\n\nSome Commands available:\n\n- start: Start all the torrents passed to it.\n- stop: Stop all the torrents passed to it.\n- count: Count the current torrents including filtering.\n- any integer: Using any positive integer will limit torrent results to that value.\n- print: print the results in a simple list\n\nExample Syntax and Usage\n------------------------\n\nList torrents filtering by those starting with fred and additionally also active.::\n\n (TS@172.16.1.9:9091)> ls | n=fred | active\n [548] Freddie Gibbs - 2013 - ESGN 18% 0.0 [downloading]\n [549] Freddie Gibbs - 2012 - Baby Face Killa (CD) [FLAC] 10% 0.0 [downloading]\n [550] Freddie Gibbs - Cold Day In Hell [FLAC] 8% 0.0 [downloading]\n\n\nStop all torrents starting with fred.::\n\n (TS@172.16.1.9:9091)> ls | n=fred | stop\n > Stopping 3 torrents.\n\nStart all torrents stopped torrents::\n\n (TS@172.16.1.9:9091)> ls | stopped | start\n > Starting 5 torrents.\n\nGet a total count of torrents registered within the client.::\n\n (TS@172.16.1.9:9091)> ls | count\n 598\n\nAn example of limiting output to a specific number of lines, In this case 5.::\n\n (TS@172.16.1.9:9091)> ls | 5 | count\n 5\n\nCounting the number of torrents using the btn tracker.::\n\n (TS@172.16.1.9:9091)> ls | t=btn | c\n 296\n\nRunning commands without invoking the REPL prompt. All commands from the REPL interface are supported::\n\n $ ts_cli.py --exec \"ls|age|r|5\"\n [667] [DEF] Snowden.2016.720p.BluRay.x264 2% ra: 0.0 up: 0.0 kB/s dn: 95.0 kB/s [downloading]\n [666] [BTN] Saturday.Night.Live.S42E10.Casey.Affleck.720p.HDTV 100% ra: 0.0513 up: 16.0 kB/s dn: 0.0 kB/s [seeding]\n [665] [BTN] the.daily.show.2016.12.14.michael.k.williams.720p.hdtv.x264 100% ra: 0.0961 up: 0.0 kB/s dn: 0.0 kB/s [seeding]\n [664] [BTN] The.Last.Leg.S09E10.720p.HDTV.mkv 100% ra: 0.1106 up: 0.0 kB/s dn: 0.0 kB/s [seeding]\n [663] [BTN] Stephen.Colbert.2016.12.14.Neil.Patrick.Harris.720p 100% ra: 0.1875 up: 0.0 kB/s dn: 0.0 kB/s [seeding]\n\nFiltering by time comparisons. This example shows all torrents that are less than 10 hours old. The time arguments come in 3 parts.\nThe operator (< or >), the duration, a positive integer, and a unit, one of [mhdwMY] which are listed below.\n\n- m = Minutes\n- h = Hours\n- d = Days\n- w = Weeks\n- M = Months\n- Y = Years\n\nLimiting to torrents less than 10 hours old.::\n\n (TS@172.16.1.9:9091)> ls | time=<10h\n [665] [BTN] the.daily.show.2016.12.14.michael.k.williams.720p.hdtv.x264-w4f.mkv [100%/424.1 MB] ra: 0.0961 up: 0.0 kB/s dn: 0.0 kB/s [seeding]\n [666] [BTN] Saturday.Night.Live.S42E10.Casey.Affleck.720p.HDTV.x264-BRISK.mkv [100%/1.7 GB] ra: 0.0684 up: 0.0 kB/s dn: 0.0 kB/s [seeding]\n [667] [DEF] Snowden.2016.720p.BluRay.x264-SPARKS [100%/7.1 GB] ra: 0.0132 up: 0.0 kB/s dn: 0.0 kB/s [seeding]\n\nFilter to torrents with a age of less than a day, limiting output to 2 results.::\n\n (TS@172.16.1.9:9091)> ls|time=<1d | 2\n [659] [BTN] The.Twilight.Zone.1959.S01.720p.BluRay.x264-aAF [100%/42.2 GB] ra: 0.0 up: 0.0 kB/s dn: 0.0 kB/s [seeding]\n [660] [BTN] The.Twilight.Zone.1960.S02.720p.BluRay.x264-aAF [100%/34.0 GB] ra: 0.0 up: 0.0 kB/s dn: 0.0 kB/s [seeding]", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/leighmacdonald/transmission_scripts/tarball/0.3.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leighmacdonald/transmission_scripts", "keywords": "torrent,transmission,p2p", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "transmissionscripts", "package_url": "https://pypi.org/project/transmissionscripts/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/transmissionscripts/", "project_urls": { "Download": "https://github.com/leighmacdonald/transmission_scripts/tarball/0.3.2", "Homepage": "https://github.com/leighmacdonald/transmission_scripts" }, "release_url": "https://pypi.org/project/transmissionscripts/0.3.2/", "requires_dist": null, "requires_python": null, "summary": "Various scripts to manage transmission", "version": "0.3.2" }, "last_serial": 2527933, "releases": { "0.2.10": [ { "comment_text": "", "digests": { "md5": "79ab9e30a5f7aff90428fe418e419db4", "sha256": "00c63eb6c85138ebfcfd9d79901b0bd7b652da3a967e77fcc945f7f4fa5e0a57" }, "downloads": -1, "filename": "transmissionscripts-0.2.10.zip", "has_sig": false, "md5_digest": "79ab9e30a5f7aff90428fe418e419db4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10638, "upload_time": "2016-12-18T08:33:19", "url": "https://files.pythonhosted.org/packages/7d/f6/5c507e8e84f7084def9362524c84239106879cf0a426dbeada0111232fcd/transmissionscripts-0.2.10.zip" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "27254b9975abd2db81c6dff656256500", "sha256": "f4cb50f5e27b024d63530176b6bab065fde2087ad68a81295e2031a54e217630" }, "downloads": -1, "filename": "transmissionscripts-0.2.8.zip", "has_sig": false, "md5_digest": "27254b9975abd2db81c6dff656256500", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10419, "upload_time": "2016-12-17T01:30:09", "url": "https://files.pythonhosted.org/packages/5a/f0/34a18abd398e5c6ab30c92a92b7a5ad2e2eee5dddcbca911f0c8bcce2581/transmissionscripts-0.2.8.zip" } ], "0.2.9": [ { "comment_text": "", "digests": { "md5": "fb88a7780a26c9da184aa999fe27f0c2", "sha256": "54d4cf5eef015d3b4054ce729bbfc299a84e9eae97481ebd2182a8161352232f" }, "downloads": -1, "filename": "transmissionscripts-0.2.9.zip", "has_sig": false, "md5_digest": "fb88a7780a26c9da184aa999fe27f0c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10616, "upload_time": "2016-12-18T08:27:39", "url": "https://files.pythonhosted.org/packages/1d/8c/3e2988a7392420a646e8dfb52cadfbeef2c57d082c5cc1bd80c72121d180/transmissionscripts-0.2.9.zip" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "d3e9574f743f654df7dfbd95dd9631b3", "sha256": "75427a6d4d669b4ec21d7c861fd2138371e5ad972279150a6d4e5d52add5b18d" }, "downloads": -1, "filename": "transmissionscripts-0.3.0.zip", "has_sig": false, "md5_digest": "d3e9574f743f654df7dfbd95dd9631b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13653, "upload_time": "2016-12-18T11:22:52", "url": "https://files.pythonhosted.org/packages/a4/bf/45effe04cb1390348d44e2ba551643c4320bc4fac83b2b32b5eea3c50530/transmissionscripts-0.3.0.zip" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "c528e2196552f7cf76a96d64c2230f20", "sha256": "bd1a532d62f83326ef81a78589ba7fc733156a1759e2a357c4aea0830058e12c" }, "downloads": -1, "filename": "transmissionscripts-0.3.1.tar.gz", "has_sig": false, "md5_digest": "c528e2196552f7cf76a96d64c2230f20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10338, "upload_time": "2016-12-18T12:55:08", "url": "https://files.pythonhosted.org/packages/84/8b/03706bb187820d2b91aaedbd62b56dc696dbbbe57aa6dbb40ad40d430ccc/transmissionscripts-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "85868f79ac990675f15c1a04515ee655", "sha256": "66b8e0f00206b3b802b86fad4f29982cf06243aa82a512ed111e8f1f502b56a4" }, "downloads": -1, "filename": "transmissionscripts-0.3.2.zip", "has_sig": false, "md5_digest": "85868f79ac990675f15c1a04515ee655", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14947, "upload_time": "2016-12-19T11:22:36", "url": "https://files.pythonhosted.org/packages/c6/68/6824c611a3168b3285dce17fc0da8ea56c69228124208a8428257fc109a6/transmissionscripts-0.3.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "85868f79ac990675f15c1a04515ee655", "sha256": "66b8e0f00206b3b802b86fad4f29982cf06243aa82a512ed111e8f1f502b56a4" }, "downloads": -1, "filename": "transmissionscripts-0.3.2.zip", "has_sig": false, "md5_digest": "85868f79ac990675f15c1a04515ee655", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14947, "upload_time": "2016-12-19T11:22:36", "url": "https://files.pythonhosted.org/packages/c6/68/6824c611a3168b3285dce17fc0da8ea56c69228124208a8428257fc109a6/transmissionscripts-0.3.2.zip" } ] }