API library for qBittorrent with asyncio
Project description
aioqbt
API library for qBittorrent with asyncio.
It features async typed APIs and object-based results.
Documentation
https://aioqbt.readthedocs.io/en/latest/
Quick Start
Install with pip
$ pip install aioqbt
import asyncio
from aioqbt.client import create_client
from aioqbt.api.types import InfoFilter
async def run():
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.2.5
print(await client.app.webapi_version()) # 2.5.1
# print torrents in downloading
for info in await client.torrents.info(filter=InfoFilter.DOWNLOADING):
print(f"{info.added_on.isoformat()} added {info.name!r}")
# 2022-09-10T17:59:00 added 'debian-11.5.0-amd64-netinst.iso'
if __name__ == '__main__':
asyncio.run(run())
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.5.6.tar.gz
(49.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
aioqbt-0.5.6-py3-none-any.whl
(32.4 kB
view details)
File details
Details for the file aioqbt-0.5.6.tar.gz.
File metadata
- Download URL: aioqbt-0.5.6.tar.gz
- Upload date:
- Size: 49.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d53a37a291faf1fce43ac6856cd8edfa994652e556e141c72b6de245686c551d
|
|
| MD5 |
cc19431d0c664b25314d908199cf3ae5
|
|
| BLAKE2b-256 |
3459ef50136f50b2f968d87b537965342c8953c9b9f03a6a82534100a0153177
|
File details
Details for the file aioqbt-0.5.6-py3-none-any.whl.
File metadata
- Download URL: aioqbt-0.5.6-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
786622bbbae4f6a6463926f4f9a71b5ce8057bc87da16c888db460d6e3f7d72a
|
|
| MD5 |
12164b6f0f6bdbd5a35805fee391ca0e
|
|
| BLAKE2b-256 |
50a396306381b8688cd025e84f858022336ceca901f4e066852c23c288adaf64
|