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 v5.0.2 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())

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

Uploaded Source

Built Distribution

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

aioqbt-1.1.0-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioqbt-1.1.0.tar.gz
  • Upload date:
  • Size: 91.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aioqbt-1.1.0.tar.gz
Algorithm Hash digest
SHA256 03b21dbdf3e50fb978ea433b5bce6b520bbedff58127b61e2e1acc69c0e6bc24
MD5 5746e2b246545396438de09a1e9ff456
BLAKE2b-256 cfd93d764b3ba3c009b51bf4d14e344835b5d5f2f9c2a48f5996e7a159cca495

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioqbt-1.1.0.tar.gz:

Publisher: publish.yaml on tsangwpx/aioqbt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: aioqbt-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aioqbt-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff1d714b92c11a3f59b94347046191d670379f83f95d61b9ce1cb6810c8bab8e
MD5 ce133a49a95139bfcc9c5c88a1eaab39
BLAKE2b-256 6e8188f4391c385f94abad58ca1e23604b8652577fedeb5697f4652a6dae3306

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioqbt-1.1.0-py3-none-any.whl:

Publisher: publish.yaml on tsangwpx/aioqbt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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