Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ludeeus/pytautulli
A python module to get information from Tautulli
https://github.com/ludeeus/pytautulli
Last synced: 11 days ago
JSON representation
A python module to get information from Tautulli
- Host: GitHub
- URL: https://github.com/ludeeus/pytautulli
- Owner: ludeeus
- License: mit
- Created: 2018-07-21T08:46:33.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T06:59:02.000Z (over 1 year ago)
- Last Synced: 2024-10-24T17:49:33.629Z (20 days ago)
- Language: Python
- Homepage:
- Size: 68.4 KB
- Stars: 2
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytautulli
[![codecov](https://codecov.io/gh/ludeeus/pytautulli/branch/main/graph/badge.svg)](https://codecov.io/gh/ludeeus/pytautulli)
![python version](https://img.shields.io/badge/Python-3.8=><=3.10-blue.svg)
[![PyPI](https://img.shields.io/pypi/v/pytautulli)](https://pypi.org/project/pytautulli)
![Actions](https://github.com/ludeeus/pytautulli/workflows/Actions/badge.svg?branch=main)_Python API wrapper for Tautulli._
## Installation
```bash
python3 -m pip install pytautulli
```## Example usage
More examples can be found in the `tests` directory.
```python
"""Example usage of pytautulli."""
import asyncio
from pytautulli import PyTautulli, PyTautulliHostConfigurationIP = "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 `scripts/lint`
5. Ensure all tests passes with `scripts/test`
6. Ensure 100% coverage with `scripts/coverage`
7. Commit your work, and push it to GitHub
8. Create a PR against the `main` branch