Skip to main content

Python API wrapper for Tautulli.

Project description

pytautulli

codecov python version PyPI Actions

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!

  1. Fork the repository
  2. Clone the repository locally and open the devcontainer or use GitHub codespaces
  3. Do your changes
  4. Lint the files with make lint
  5. Ensure all tests passes with make test
  6. Ensure 100% coverage with make coverage
  7. Commit your work, and push it to GitHub
  8. Create a PR against the main branch

Project details


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.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytautulli-21.8.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file pytautulli-21.8.0.tar.gz.

File metadata

  • Download URL: pytautulli-21.8.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for pytautulli-21.8.0.tar.gz
Algorithm Hash digest
SHA256 b8f1c0485da8ebf635f8db949349a10739a89f2f4b06ae76d696116eee11dd0c
MD5 0469f9d696f89c75a6b91c122cb291fb
BLAKE2b-256 f9665c63118f9bcda0cd6f6579c3f5270a1d56f50daa72d8b6faea9f584a3863

See more details on using hashes here.

File details

Details for the file pytautulli-21.8.0-py3-none-any.whl.

File metadata

  • Download URL: pytautulli-21.8.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.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for pytautulli-21.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35e87dd336a6bff30d3f340e457cc1709625c8e236ed98972aacd86152a1838f
MD5 dbc3e94cdf8693d5c69a93356a058b0d
BLAKE2b-256 e998086d57c8abb369f93d5bae66483850534d0bb46457a686f53b77a508b720

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page