An Asynchronous Lidarr, Radarr, Readarr, Sonarr APIs for Python.
Project description
aiopyarr
Python API client for Lidarr/Radarr/Readarr/Sonarr.
Installation
python3 -m pip install aiopyarr
Example usage
More examples can be found in the tests
directory.
"""Example usage of aiopyarr."""
import asyncio
from aiopyarr.models.host_configuration import PyArrHostConfiguration
from aiopyarr.radarr_client import RadarrClient
IP = "192.168.100.3"
TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
async def async_example():
"""Example usage of aiopyarr."""
host_configuration = PyArrHostConfiguration(ipaddress=IP, api_token=TOKEN)
async with RadarrClient(host_configuration=host_configuration) as client:
print(await client.async_get_system_status())
asyncio.get_event_loop().run_until_complete(async_example())
Contribute
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiopyarr-22.11.0.tar.gz
(57.3 kB
view hashes)
Built Distribution
aiopyarr-22.11.0-py3-none-any.whl
(69.7 kB
view hashes)
Close
Hashes for aiopyarr-22.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e783339786cc0ab601f8db8b5f61b3617d07c3c41e4aa3899f77f3970b9e4fac |
|
MD5 | 93df4d88fe23121191c630c72175b990 |
|
BLAKE2b-256 | 8a636ef28b19a2b71137cf44abad1cc0c0bf6bff9d894e247e8fe8efe0551fe8 |