



Python API client for Lidarr/Radarr/Readarr/Sonarr.
python3 -m pip install aiopyarr
More examples can be found in thetests
directory.
"""Example usage of aiopyarr."""importasynciofromaiopyarr.models.host_configurationimportPyArrHostConfigurationfromaiopyarr.radarr_clientimportRadarrClientIP="192.168.100.3"TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"asyncdefasync_example():"""Example usage of aiopyarr."""host_configuration=PyArrHostConfiguration(ipaddress=IP,api_token=TOKEN)asyncwithRadarrClient(host_configuration=host_configuration)asclient:print(awaitclient.async_get_system_status())asyncio.get_event_loop().run_until_complete(async_example())
All contributions are welcome!
- Fork the repository
- Clone the repository locally and open the devcontainer or use GitHub codespaces
- Do your changes
- Lint the files with
make lint
- Ensure all tests passes with
make test
- Ensure 100% coverage with
make coverage
- Commit your work, and push it to GitHub
- Create a PR against the
master
branch