Skip to main content

API library for qBittorrent with asyncio

Project description

aioqbt

Documentation Status

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.0
        print(await client.app.webapi_version())  # 2.9.2

        # 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.

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.0.tar.gz (80.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioqbt-0.7.0-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file aioqbt-0.7.0.tar.gz.

File metadata

  • Download URL: aioqbt-0.7.0.tar.gz
  • Upload date:
  • Size: 80.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for aioqbt-0.7.0.tar.gz
Algorithm Hash digest
SHA256 d31143715fa9de92f9f848a8e02e0d350dd254ff2e3a5655da5ef2cbac85ab16
MD5 16b28c3f72b04126610bb8f4982f2073
BLAKE2b-256 8a67e7ea1a8a4fc65976e8035d6b9e5c751dac00ebb0c82e3357d54d1ce6cfd1

See more details on using hashes here.

File details

Details for the file aioqbt-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: aioqbt-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for aioqbt-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0660dc4c5c85eebded447d667bb9fddb426dfeeb8d7fbef8efb0cb5b55a60fed
MD5 8199746a19ba7958cbef833faa7fb22f
BLAKE2b-256 3a733cea93afda475fa1c31c7fd24daab30306dbb772489d5eb09680c46a8d44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page