This package is officially deprecated as of June 25th, 2022. Consider using pyaioarr
Asynchronous Python client for Sonarr API.
This package allows you to monitor a Sonarr instance.
pip install sonarrimportasynciofromsonarrimportSonarrasyncdefmain():
"""Show example of connecting to your Sonarr instance."""asyncwithSonarr("192.168.1.100", "API_TOKEN") assonarr:
# basic: simple api for monitoring purposes only.info=awaitsonarr.update()
print(info)
calendar=awaitsonarr.calendar()
print(calendar)
commands=awaitsonarr.commands()
print(commands)
queue=awaitsonarr.queue()
print(queue)
series=awaitsonarr.series()
print(series)
wanted=awaitsonarr.wanted()
print(wanted)
if__name__=="__main__":
loop=asyncio.get_event_loop()
loop.run_until_complete(main())