aiotr


Nameaiotr JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/synodriver/aiotransmission
SummarySupport transmission rpc client and manage server with async/await
upload_time2023-12-09 16:53:24
maintainerv-vinson
docs_urlNone
authorsynodriver
requires_python>=3.6
licenseGPLv3
keywords asyncio transmission
VCS
bugtrack_url
requirements aiohttp typing-extensions
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # aiotr

[![pypi](https://img.shields.io/pypi/v/aiotr.svg)](https://pypi.org/project/aiotr/)
![python](https://img.shields.io/pypi/pyversions/aiotr)
![implementation](https://img.shields.io/pypi/implementation/aiotr)
![wheel](https://img.shields.io/pypi/wheel/aiotr)
![license](https://img.shields.io/github/license/synodriver/aiotransmission.svg)

## The transmission python client with asyncio support

### simple usage

- add a torrent

```python
import asyncio
from pprint import pprint

import ujson
from aiotr import TransmissionClient


async def main():
    client = TransmissionClient(loads=ujson.loads, dumps=ujson.dumps)
    # client.host="xxx" needed when verify is enabled
    pprint(await client.port_test())
    data = await client.torrent_add(
        filename="magnet:?xt=urn:btih:091e5c8b3b3f4c4fac68c0867b4c5740365d79fb&dn=%5B210730%5D%5B%E9%88%B4%E6%9C%A8%E3%81%BF%E3%82%89%E4%B9%83%5D%E3%83%88%E3%82%A4%E3%83%AC%E3%81%AE%E8%8A%B1%E5%AD%90%E3%81%95%E3%82%93VS%E5%B1%88%E5%BC%B7%E9%80%80%E9%AD%94%E5%B8%AB%20%EF%BD%9E%E6%82%AA%E5%A0%95%E3%81%A1%E3%83%9E%E2%97%8B%E3%82%B3%E3%81%AB%E5%A4%A9%E8%AA%85%E3%82%B6%E3%83%BC%E3%83%A1%E3%83%B3%E9%80%A3%E7%B6%9A%E4%B8%AD%E5%87%BA%E3%81%97%EF%BD%9E%20%E7%AC%AC%E4%B8%89%E6%80%AA%EF%BC%88%E3%81%A0%E3%81%84%E3%81%95%E3%82%93%E3%81%8B%E3%81%84%EF%BC%89%20%E6%88%A6%E6%85%84%E3%80%8E%E4%BA%BA%E9%9D%A2%E7%8A%AC%E3%80%8F%EF%BC%81%E5%81%A5%E5%BA%B7%E5%84%AA%E8%89%AF%E7%8A%AC%E8%80%B3%E2%97%8B%E5%A5%B3%E3%81%AB%E5%88%9D%E3%82%81%E3%81%A6%E3%81%AE%E6%80%A7%E6%95%99%E8%82%B2%28No%20Watermark%29.mp4&tr=http%3A%2F%2Fsukebei.tracker.wf%3A8888%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce")
    pprint(data)


asyncio.run(main())
```
Rpc methods are listed [here](https://github.com/transmission/transmission/blob/master/extras/rpc-spec.txt)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/synodriver/aiotransmission",
    "name": "aiotr",
    "maintainer": "v-vinson",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "asyncio,transmission",
    "author": "synodriver",
    "author_email": "diguohuangjiajinweijun@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2b/09/42ce136998a9e7afcdb4eb66a9d73b00903190368c5cb303523c0d984197/aiotr-0.1.1.tar.gz",
    "platform": null,
    "description": "# aiotr\r\n\r\n[![pypi](https://img.shields.io/pypi/v/aiotr.svg)](https://pypi.org/project/aiotr/)\r\n![python](https://img.shields.io/pypi/pyversions/aiotr)\r\n![implementation](https://img.shields.io/pypi/implementation/aiotr)\r\n![wheel](https://img.shields.io/pypi/wheel/aiotr)\r\n![license](https://img.shields.io/github/license/synodriver/aiotransmission.svg)\r\n\r\n## The transmission python client with asyncio support\r\n\r\n### simple usage\r\n\r\n- add a torrent\r\n\r\n```python\r\nimport asyncio\r\nfrom pprint import pprint\r\n\r\nimport ujson\r\nfrom aiotr import TransmissionClient\r\n\r\n\r\nasync def main():\r\n    client = TransmissionClient(loads=ujson.loads, dumps=ujson.dumps)\r\n    # client.host=\"xxx\" needed when verify is enabled\r\n    pprint(await client.port_test())\r\n    data = await client.torrent_add(\r\n        filename=\"magnet:?xt=urn:btih:091e5c8b3b3f4c4fac68c0867b4c5740365d79fb&dn=%5B210730%5D%5B%E9%88%B4%E6%9C%A8%E3%81%BF%E3%82%89%E4%B9%83%5D%E3%83%88%E3%82%A4%E3%83%AC%E3%81%AE%E8%8A%B1%E5%AD%90%E3%81%95%E3%82%93VS%E5%B1%88%E5%BC%B7%E9%80%80%E9%AD%94%E5%B8%AB%20%EF%BD%9E%E6%82%AA%E5%A0%95%E3%81%A1%E3%83%9E%E2%97%8B%E3%82%B3%E3%81%AB%E5%A4%A9%E8%AA%85%E3%82%B6%E3%83%BC%E3%83%A1%E3%83%B3%E9%80%A3%E7%B6%9A%E4%B8%AD%E5%87%BA%E3%81%97%EF%BD%9E%20%E7%AC%AC%E4%B8%89%E6%80%AA%EF%BC%88%E3%81%A0%E3%81%84%E3%81%95%E3%82%93%E3%81%8B%E3%81%84%EF%BC%89%20%E6%88%A6%E6%85%84%E3%80%8E%E4%BA%BA%E9%9D%A2%E7%8A%AC%E3%80%8F%EF%BC%81%E5%81%A5%E5%BA%B7%E5%84%AA%E8%89%AF%E7%8A%AC%E8%80%B3%E2%97%8B%E5%A5%B3%E3%81%AB%E5%88%9D%E3%82%81%E3%81%A6%E3%81%AE%E6%80%A7%E6%95%99%E8%82%B2%28No%20Watermark%29.mp4&tr=http%3A%2F%2Fsukebei.tracker.wf%3A8888%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce\")\r\n    pprint(data)\r\n\r\n\r\nasyncio.run(main())\r\n```\r\nRpc methods are listed [here](https://github.com/transmission/transmission/blob/master/extras/rpc-spec.txt)\r\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "Support transmission rpc client and manage server with async/await",
    "version": "0.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/synodriver/aiotransmission/issues",
        "Homepage": "https://github.com/synodriver/aiotransmission"
    },
    "split_keywords": [
        "asyncio",
        "transmission"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "73b81fb9f1ffd2ebfe6a2df01d2080b325be54046391e3c3b6018b6f8b4b933c",
                "md5": "6a5391ae09ac6d5ee3814b2bf1424ebf",
                "sha256": "0bfa2b2666b79593d7ecc16eadc7ba76c0aa9085e9059607507ebb4ee8b52465"
            },
            "downloads": -1,
            "filename": "aiotr-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6a5391ae09ac6d5ee3814b2bf1424ebf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 26069,
            "upload_time": "2023-12-09T16:53:22",
            "upload_time_iso_8601": "2023-12-09T16:53:22.254653Z",
            "url": "https://files.pythonhosted.org/packages/73/b8/1fb9f1ffd2ebfe6a2df01d2080b325be54046391e3c3b6018b6f8b4b933c/aiotr-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b0942ce136998a9e7afcdb4eb66a9d73b00903190368c5cb303523c0d984197",
                "md5": "f4375ff28c2bb47a5d595309a9b0f7b1",
                "sha256": "42160ad793830afef1985ba69673c39364238b361dca6d51c675d1b6dc4ccc57"
            },
            "downloads": -1,
            "filename": "aiotr-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f4375ff28c2bb47a5d595309a9b0f7b1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 27212,
            "upload_time": "2023-12-09T16:53:24",
            "upload_time_iso_8601": "2023-12-09T16:53:24.418588Z",
            "url": "https://files.pythonhosted.org/packages/2b/09/42ce136998a9e7afcdb4eb66a9d73b00903190368c5cb303523c0d984197/aiotr-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-09 16:53:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "synodriver",
    "github_project": "aiotransmission",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "aiohttp",
            "specs": []
        },
        {
            "name": "typing-extensions",
            "specs": []
        }
    ],
    "lcname": "aiotr"
}
        
Elapsed time: 0.16185s