Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

aiopyarr

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aiopyarr

An Asynchronous Lidarr, Radarr, Readarr, Sonarr APIs for Python.

pipPyPI
Version
23.4.0
Maintainers
1

aiopyarr

codecov python version PyPI Actions

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

Keywords

aiopyarr

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts