About • Install • Contribute • Author • Support • Donate • Full Documentation
Pyarr is a high quality Python API Wrapper that provides access to both Radarr and Sonarr REST APIs. |
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
# 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())
# 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())
Got something interesting you'd like to share? Learn about contributing in our contributing guide.
marksie1988 (Steven Marks) |
- Archmonger Some excellent contribution and improvements.
Reach out to me at one of the following places:
Please consider supporting this project by sponsoring, or just donating a little via our sponsor page.
- Copyright © Total Debug