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.6.0.tar.gz
(59.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.6.0-py3-none-any.whl
(37.3 kB
view details)
File details
Details for the file aioqbt-0.6.0.tar.gz.
File metadata
- Download URL: aioqbt-0.6.0.tar.gz
- Upload date:
- Size: 59.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
987518a3e7c3d89649f6b1e0fffed63b78c98344893dbea2abbdeb57fe33bbcd
|
|
| MD5 |
a90eddf728cac069fe374f34eafba2cd
|
|
| BLAKE2b-256 |
3bdb03b84997f15ff9f4ee0fc9b34bde4933942e3e0158711f07322c8a431da4
|
File details
Details for the file aioqbt-0.6.0-py3-none-any.whl.
File metadata
- Download URL: aioqbt-0.6.0-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2a7e82c05f3b5d98226ea48bd5effe9fcb64397930d1cfe05ffcfda54fb81e1
|
|
| MD5 |
c4cbe8cd49ed9675dde264f61a2590bb
|
|
| BLAKE2b-256 |
452e00668f9eba28d1e2991f1561c0960a1d79fe97e489d5691c069f5b8683d6
|