Skip to main content

A Sonarr and Radarr API Wrapper

Project description

Sonarr and Radarr API Python Wrapper

Unofficial Python Wrapper for the Sonarr and Radarr API.

Now supports Radarr v3 API

Based on the origional wrapper from SLiX69/Sonarr-API-Python-Wrapper.

See the full documentation for supported functions.

Requirements

  • requests

Example Sonarr Usage:

# Import SonarrAPI Class
from pyarr import SonarrAPI

# Set Host URL and API-Key
host_url = 'http://your-domain.com'

# You can find your API key in Settings > General.
api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

# Instantiate SonarrAPI Object
sonarr = SonarrAPI(host_url, api_key)

# Get and print TV Shows
print(sonarr.getSeries())

Example Radarr API v1 Usage:

# Import RadarrAPI Class
from pyarr import RadarrAPIv1

# Set Host URL and API-Key
host_url = 'http://your-domain.com'

# You can find your API key in Settings > General.
api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

# Instantiate RadarrAPI Object
radarr = RadarrAPIv1(host_url, api_key)

# Get and print TV Shows
print(radarr.getCalendar())

Documentation

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

pyarr-1.0.2.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

pyarr-1.0.2-py3-none-any.whl (12.2 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