Python API wrapper for Tautulli.
Project description
pytautulli
Python API wrapper for Tautulli.
Installation
python3 -m pip install pytautulli
Example usage
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())
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
main
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
pytautulli-21.8.1.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for pytautulli-21.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 578378879fa983e777ca15b354656cbf867db9d5f782c8a9cffca5c0a5c6c261 |
|
MD5 | 4d5bf5a122f68d94e9d8a2b2ffed2feb |
|
BLAKE2b-256 | 590368376a023e400053202dae609397ee13fc0e238d42fa0643020219750e9b |