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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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