Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.
/ python-sonarr Public archive

DEPRECATED Asynchronous Python client for the Sonarr API

License

Notifications You must be signed in to change notification settings

ctalkington/python-sonarr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

47d284b · Jun 25, 2022
Apr 4, 2020
Jul 5, 2021
Sep 24, 2020
Jun 20, 2020
Apr 4, 2020
Apr 4, 2020
Apr 4, 2020
Apr 4, 2020
Apr 4, 2020
Apr 4, 2020
Apr 4, 2020
Apr 4, 2020
Sep 17, 2020
Jun 25, 2022
Apr 4, 2020
Jul 30, 2020
Jul 5, 2021
Jul 5, 2021
Apr 4, 2020

Repository files navigation

Deprecated

This package is officially deprecated as of June 25th, 2022. Consider using pyaioarr

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