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
mainbranch
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.0.tar.gz
(9.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytautulli-21.10.0.tar.gz.
File metadata
- Download URL: pytautulli-21.10.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53f9421f6803b075ef6d50aaae205874138e3302c9437dbaa4daa1f30e669917
|
|
| MD5 |
3280ff613b06ba656fe65d36ac304202
|
|
| BLAKE2b-256 |
4305398d3fd4f2902bd950edd100d41d3793d0ffeadbed0896f02976e95967fc
|
File details
Details for the file pytautulli-21.10.0-py3-none-any.whl.
File metadata
- Download URL: pytautulli-21.10.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b4cde0c032dd5c0c010bc1bee628f214f644795a66f3df30ca953a04f7ed14d
|
|
| MD5 |
d06f2e8433c7f8bc66e95009cc3099b2
|
|
| BLAKE2b-256 |
1c0c48c111dd6a4f588623fd96682d0702903bfd84d9ae225c4717473f41075a
|