API library for qBittorrent with asyncio
Project description
aioqbt
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
$ pip install aioqbt
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())
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
aioqbt-0.7.1.tar.gz
(87.1 kB
view details)
Built Distribution
aioqbt-0.7.1-py3-none-any.whl
(48.0 kB
view details)
File details
Details for the file aioqbt-0.7.1.tar.gz
.
File metadata
- Download URL: aioqbt-0.7.1.tar.gz
- Upload date:
- Size: 87.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9263bf8a2f372a92ce492aa89984fe31d547c935c1d748927a0c7bdff21abd67 |
|
MD5 | d8b92ff37322bc91b2d406bb09c29f10 |
|
BLAKE2b-256 | 116048d9b1cd5c1ba8dc03d8e22f1c532f3e3208eb01c403074fa0b05b850269 |
File details
Details for the file aioqbt-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: aioqbt-0.7.1-py3-none-any.whl
- Upload date:
- Size: 48.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a7f5700659a0fcf3fbde6a3ccb07a7774e02d0cc3da10880745717b40bc504 |
|
MD5 | efed2126510132a498312b6cc9b29089 |
|
BLAKE2b-256 | 38b76bcc7ee352ff536bd1a28e8850be4bffbababe882ef9b516a7b27cf406bd |