Python API wrapper for Tautulli.
python3 -m pip install pytautulli
More examples can be found in the tests
directory.
"""Example usage of pytautulli."""
import asyncio
from pytautulli import PyTautulli, PyTautulliHostConfiguration
IP = "192.168.100.3"
TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
async def async_example():
"""Example usage of pytautulli."""
host_configuration = PyTautulliHostConfiguration(ipaddress=IP, api_token=TOKEN)
async with PyTautulli(host_configuration=host_configuration) as client:
print(await client.async_command("get_activity"))
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
scripts/lint
- Ensure all tests passes with
scripts/test
- Ensure 100% coverage with
scripts/coverage
- Commit your work, and push it to GitHub
- Create a PR against the
main
branch