{ "info": { "author": "Terence Honles", "author_email": "terence@honles.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: Python Software Foundation License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "Shifter\n=======\n\n::\n\n ______________________ _____ _____________ 1 2 3\n ________/ ___/___/ /_ __(_)___/ __/__/ /______ ________ R \u2502 \u2502 \u2502\n _____/___ \\ __/ __ \\ ___ ___/ /_ _/ __/_ _ \\__/ ___/ \u2514\u2500\u2500\u253c\u2500\u2500\u253c\u2500\u2500\u2524\n ______/ / _/ / / /_/ / _/ __/ / /_ / __/_/ / \u2502 \u2502 \u2502\n /____/ /_/ /_/ /_/ /_/ \\__/ \\___/ /_/ 4 5 6\n\n\n``shifter`` is a Python_ library for controlling transmission_ and uses the\nversion number of the newest version of transmission that it was written to\nsupport *(it will likely work for newer versions, but there is no guarantee)*.\n``shifter`` has been written in 2.x syntax and will work for both Python2.x and Python3.x starting with Python2.5.\n\nTo install::\n\n $ pip install shifter\n\nor ::\n\n $ easy_install shifter\n\nFor versions of Python3.x ``shifter`` is converted using ``2to3``. When\ninstalling with ``pip`` or using ``distribute``, ``shifter`` will automatically\nbe converted to 3.x syntax. Otherwise you can run the ``2to3`` tool manually\nwith the following command::\n\n $ 2to3 -f future -f reduce -f urllib -w shifter.py\n\n``shifter`` was designed to be a more lightweight and consistent transmission_\nRPC library than what was currently available for Python_. Instead of simply\nusing the keys/fields that transmission-rpc_ specifies which have a mix of\ndashed separated words and mixed case words, ``shifter`` tries to convert all\nkeys to a more python oriented: underscore separated words. This conversion is\ndone so that it is still possible to specify the fields/argument specified in\n`transmission-rpc`_, but if you do so your mileage may vary *(probably want to\navoid it)*.\n\n``shifter`` is designed to work with all versions of transmission_, but for\nrenamed fields before and after the transmission version 1.60 (`RPC v5`_) you\nmust specify the correct argument names (no automatic renames)\n\nTo use ``shifter`` to control a default ``transmission-daemon`` on\n``localhost``:\n\n>>> client = shifter.Client()\n>>> client.list()\n\nwhich produces a list of dictionaries with the torrent information (keys are\nthe fields: client.list_fields), and is synonymous to calling\n\n>>> client.torrent.get(client.list_fields)\n\nTo use different connection information:\n\n- complete path\n\n >>> client = shifter.Client(address=\"https://host:port/path\")\n\n- default URL, but port change to 8080\n\n >>> client = shifter.Client(port=8080)\n\n- default URL, but different host\n\n >>> client = shifter.Client(host=\"github.com\")\n\n- default URL, but use a username and password\n\n >>> client = shifter.Client(username='username', password='password')\n\n``shifter``'s RPC methods are namespaced into four sections:\n\n:Client_:\n\n - port_test -- return if transmission port is open.\n - blocklist_update -- update block list and return block list size.\n - *list* (`torrent.get`_ helper) -- list basic torrent info for all torrents\n\n:Client.queue_:\n\n - move_bottom -- move torrent to bottom of the queue\n - move_down -- move torrent down in the queue\n - move_top -- move torrent to the top of the queue\n - move_up -- move torrent up in the queue\n\n:Client.session_:\n\n - close -- shutdown the transmission daemon\n - get -- get session properties\n - set -- set session properties\n - stats -- get session statistics\n\n:Client.torrent_:\n\n - add -- add a new torrent\n\n .. _`torrent.get`:\n\n - get -- get torrent properties\n - *files* (`torrent.get`_ helper) -- get file information for one or more\n torrents\n\n - *percent_done* (`torrent.get`_ helper) -- get torrent percent done for\n one or more torrents\n\n - remove -- remove a torrent from transmission and optionally delete the\n data\n\n - set -- set torrent properties\n - set_location -- set/move torrent location\n\n\n.. source references\n\n.. _Client:\n https://github.com/terencehonles/shifter/blob/master/shifter.py#L667\n\n.. _Client.queue:\n https://github.com/terencehonles/shifter/blob/master/shifter.py#L338\n\n.. _Client.session:\n https://github.com/terencehonles/shifter/blob/master/shifter.py#L345\n\n.. _Client.torrent:\n https://github.com/terencehonles/shifter/blob/master/shifter.py#L413\n\n.. external references\n\n.. _Python: http://python.org/\n.. _transmission: http://www.transmissionbt.com/\n\n.. _transmission-rpc:\n https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt\n\n.. _RPC v5:\n https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt#L593", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/terencehonles/shifter", "keywords": "Transmission RPC torrent", "license": "PSF", "maintainer": null, "maintainer_email": null, "name": "shifter", "package_url": "https://pypi.org/project/shifter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/shifter/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/terencehonles/shifter" }, "release_url": "https://pypi.org/project/shifter/2.75/", "requires_dist": null, "requires_python": null, "summary": "Transmission RPC Bindings", "version": "2.75" }, "last_serial": 799495, "releases": { "2.40": [ { "comment_text": "", "digests": { "md5": "6aab906d3ea7fb8044b25c7d027d1839", "sha256": "a30b637ecaca0939f5732a6eb07b8495fd557b3c2710e5616fffb591f378af20" }, "downloads": -1, "filename": "shifter-2.40.tar.gz", "has_sig": false, "md5_digest": "6aab906d3ea7fb8044b25c7d027d1839", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11223, "upload_time": "2012-07-28T19:42:45", "url": "https://files.pythonhosted.org/packages/e9/b3/25787765ff73345e54726bafce15185918e322d30836efb5e9697b6f614e/shifter-2.40.tar.gz" } ], "2.75": [ { "comment_text": "", "digests": { "md5": "b37170fca4769ca6dfb4a47fb83a36b7", "sha256": "866ed910d4c3f9caad36ceeb64ac3119e7bd8c0f84cbee1036e89dc822666743" }, "downloads": -1, "filename": "shifter-2.75.tar.gz", "has_sig": false, "md5_digest": "b37170fca4769ca6dfb4a47fb83a36b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11521, "upload_time": "2013-02-23T21:26:17", "url": "https://files.pythonhosted.org/packages/db/5e/8c6f0d1dfedda8051ca726016924e09eb81a967c3075533491b36a78e4ae/shifter-2.75.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b37170fca4769ca6dfb4a47fb83a36b7", "sha256": "866ed910d4c3f9caad36ceeb64ac3119e7bd8c0f84cbee1036e89dc822666743" }, "downloads": -1, "filename": "shifter-2.75.tar.gz", "has_sig": false, "md5_digest": "b37170fca4769ca6dfb4a47fb83a36b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11521, "upload_time": "2013-02-23T21:26:17", "url": "https://files.pythonhosted.org/packages/db/5e/8c6f0d1dfedda8051ca726016924e09eb81a967c3075533491b36a78e4ae/shifter-2.75.tar.gz" } ] }