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.0.0.tar.gz (90.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.0.0-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioqbt-1.0.0.tar.gz
  • Upload date:
  • Size: 90.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for aioqbt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 50ecec58d8bb50a2ce6a825237a49c85960aaa56209555b4dbceb9ea073089c1
MD5 4173c8dc6b26e4410b4af81144c99068
BLAKE2b-256 e82077664669313d4758f808228660939ad5fbcd468ec8f04df09405901a9846

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioqbt-1.0.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.0.0-py3-none-any.whl.

File metadata

  • Download URL: aioqbt-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 50.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for aioqbt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99187cca1ed710d715dbe6ccf73d08bcddb9f33ddc4a72b2a44f1f6556af6ecd
MD5 bb9e13ac91f021c28df64c3e790df1b3
BLAKE2b-256 c15ec840b6388fe28e785fa2afcf8e5289e70f44508c0ccf91fd55066f1988f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioqbt-1.0.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