Skip to main content

Asynchronous Python client for the Sonarr API.

Project description

Python: Sonarr Client

Asynchronous Python client for Sonarr API.

About

This package allows you to monitor a Sonarr instance.

Installation

pip install sonarr

Usage

import asyncio

from sonarr import Sonarr


async def main():
    """Show example of connecting to your Sonarr instance."""
    async with Sonarr("192.168.1.100", "API_TOKEN") as sonarr:
        # basic: simple api for monitoring purposes only.
        info = await sonarr.update()
        print(info)

        calendar = await sonarr.calendar()
        print(calendar)

        commands = await sonarr.commands()
        print(commands)

        queue = await sonarr.queue()
        print(queue)

        series = await sonarr.series()
        print(series)

        wanted = await sonarr.wanted()
        print(wanted)


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

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

sonarr-0.3.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

sonarr-0.3.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file sonarr-0.3.0.tar.gz.

File metadata

  • Download URL: sonarr-0.3.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for sonarr-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e197eccea267494a9a0739bdaedaa622454b6efba28bef39bd03d5ef81ccbc22
MD5 59d807f2e43b5773aa73d2aaca362f8b
BLAKE2b-256 50601f56d1fe53a1a180acb3ac60df35e03fb03116e34270dd74845fcd0cd546

See more details on using hashes here.

File details

Details for the file sonarr-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sonarr-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for sonarr-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d49d4ef71f6268d9a885e8f9ba4086b236d3ccd40c120601cfca9faa4fdf87b4
MD5 8d460faf87d6dce3d1ad7a3faf3e2430
BLAKE2b-256 2383c6320a098fba3c3d9df6c79a6dbbf1dc0e34edc39def16f34609232be1f9

See more details on using hashes here.

Supported by

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