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.10.1.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for pytautulli-21.10.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9dd506bdccf8eb305e907e6defc97e5e1df301c38ae42016b61428c669fe481 |
|
MD5 | e4ad4c92e724bda2b7f5cb6fe5c729ff |
|
BLAKE2b-256 | 4ca5e8154c3a0e026dba4dbd78bc362bcaa5bbef34aa59b6777874dacfc2ba91 |