aioqbt


Nameaioqbt JSON
Version 0.7.1 PyPI version JSON
download
home_page
SummaryAPI library for qBittorrent with asyncio
upload_time2023-11-27 11:41:39
maintainer
docs_urlNone
authorAaron Tsang
requires_python>=3.7
licenseMIT
keywords qbittorrent asyncio
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # aioqbt

[![Documentation Status](https://readthedocs.org/projects/aioqbt/badge/?version=latest)](https://aioqbt.readthedocs.io/en/latest/?badge=latest)

Python library for qBittorrent WebAPI with asyncio.

Features:
* Async typed interfaces.
* Complete qBittorrent WebAPI.
* Tested with qBittorrent v4.1.5 to v4.6.0 on Debian/Ubuntu.

## Documentation

https://aioqbt.readthedocs.io/en/latest/

## Quick Start

Install with `pip`

```shell
$ pip install aioqbt
```

```python
import asyncio

from aioqbt.api import InfoFilter
from aioqbt.client import create_client


async def main():
    client = await create_client(
        "http://localhost:8080/api/v2/",
        username="admin",
        password="adminadmin",
    )

    async with client:
        # print client and API versions
        print(await client.app.version())  # v4.6.1
        print(await client.app.webapi_version())  # 2.9.3

        # print torrents in downloading
        for info in await client.torrents.info(filter=InfoFilter.DOWNLOADING):
            print(f"{info.added_on.isoformat()} added {info.name!r}")
            # 2023-11-06T17:59:00 added 'ubuntu-22.04.3-desktop-amd64.iso'


if __name__ == '__main__':
    asyncio.run(main())
```

See [detailed usage on Read the Docs][1].

[1]: https://aioqbt.readthedocs.io/en/latest/usage.html

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "aioqbt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "qbittorrent,asyncio",
    "author": "Aaron Tsang",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/11/60/48d9b1cd5c1ba8dc03d8e22f1c532f3e3208eb01c403074fa0b05b850269/aioqbt-0.7.1.tar.gz",
    "platform": null,
    "description": "# aioqbt\n\n[![Documentation Status](https://readthedocs.org/projects/aioqbt/badge/?version=latest)](https://aioqbt.readthedocs.io/en/latest/?badge=latest)\n\nPython library for qBittorrent WebAPI with asyncio.\n\nFeatures:\n* Async typed interfaces.\n* Complete qBittorrent WebAPI.\n* Tested with qBittorrent v4.1.5 to v4.6.0 on Debian/Ubuntu.\n\n## Documentation\n\nhttps://aioqbt.readthedocs.io/en/latest/\n\n## Quick Start\n\nInstall with `pip`\n\n```shell\n$ pip install aioqbt\n```\n\n```python\nimport asyncio\n\nfrom aioqbt.api import InfoFilter\nfrom aioqbt.client import create_client\n\n\nasync def main():\n    client = await create_client(\n        \"http://localhost:8080/api/v2/\",\n        username=\"admin\",\n        password=\"adminadmin\",\n    )\n\n    async with client:\n        # print client and API versions\n        print(await client.app.version())  # v4.6.1\n        print(await client.app.webapi_version())  # 2.9.3\n\n        # print torrents in downloading\n        for info in await client.torrents.info(filter=InfoFilter.DOWNLOADING):\n            print(f\"{info.added_on.isoformat()} added {info.name!r}\")\n            # 2023-11-06T17:59:00 added 'ubuntu-22.04.3-desktop-amd64.iso'\n\n\nif __name__ == '__main__':\n    asyncio.run(main())\n```\n\nSee [detailed usage on Read the Docs][1].\n\n[1]: https://aioqbt.readthedocs.io/en/latest/usage.html\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "API library for qBittorrent with asyncio",
    "version": "0.7.1",
    "project_urls": {
        "Documentation": "https://aioqbt.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/tsangwpx/aioqbt",
        "Source": "https://github.com/tsangwpx/aioqbt"
    },
    "split_keywords": [
        "qbittorrent",
        "asyncio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38b76bcc7ee352ff536bd1a28e8850be4bffbababe882ef9b516a7b27cf406bd",
                "md5": "efed2126510132a498312b6cc9b29089",
                "sha256": "f3a7f5700659a0fcf3fbde6a3ccb07a7774e02d0cc3da10880745717b40bc504"
            },
            "downloads": -1,
            "filename": "aioqbt-0.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "efed2126510132a498312b6cc9b29089",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 47980,
            "upload_time": "2023-11-27T11:41:38",
            "upload_time_iso_8601": "2023-11-27T11:41:38.070586Z",
            "url": "https://files.pythonhosted.org/packages/38/b7/6bcc7ee352ff536bd1a28e8850be4bffbababe882ef9b516a7b27cf406bd/aioqbt-0.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "116048d9b1cd5c1ba8dc03d8e22f1c532f3e3208eb01c403074fa0b05b850269",
                "md5": "d8b92ff37322bc91b2d406bb09c29f10",
                "sha256": "9263bf8a2f372a92ce492aa89984fe31d547c935c1d748927a0c7bdff21abd67"
            },
            "downloads": -1,
            "filename": "aioqbt-0.7.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d8b92ff37322bc91b2d406bb09c29f10",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 87083,
            "upload_time": "2023-11-27T11:41:39",
            "upload_time_iso_8601": "2023-11-27T11:41:39.702744Z",
            "url": "https://files.pythonhosted.org/packages/11/60/48d9b1cd5c1ba8dc03d8e22f1c532f3e3208eb01c403074fa0b05b850269/aioqbt-0.7.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-27 11:41:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tsangwpx",
    "github_project": "aioqbt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aioqbt"
}
        
Elapsed time: 0.14004s