Skip to content

muqshots/pyarr

 
 

Repository files navigation

Pyarr: Sonarr and Radarr API Python Wrapper

AboutInstallContributeAuthorSupportDonateFull Documentation


About

Pyarr is a high quality Python API Wrapper that provides access to both Radarr and Sonarr REST APIs.

Install

This package is distributed on PyPI and can be installed with pip:

$ pip install pyarr

To use the package in your Python project, you will need to add the following:

from pyarr import SonarrAPI
from pyarr import RadarrAPI

For more information read the full documentation on installing the package

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

Example Radarr API Usage:

# Import RadarrAPI Class
from pyarr import RadarrAPI

# 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 = RadarrAPI(host_url, api_key)

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

Contribute

Got something interesting you'd like to share? Learn about contributing in our contributing guide.

Author

TotalDebug
marksie1988 (Steven Marks)

Credits

  • Archmonger Some excellent contribution and improvements.

Support

Reach out to me at one of the following places:

Donate

Please consider supporting this project by sponsoring, or just donating a little via our sponsor page.

License

License: CC BY-NC-SA 4.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.6%
  • Batchfile 1.4%
  • Makefile 1.0%