semvec/pypi-packages huggingface dataset:
zendesk-sell-firehose-client 0.0.5
Client for ZenDesk Sell Firehose API
Requires Python: >=3.7

# Zendesk Sell Firehose Client

Client for ZenDesk Sell Firehose API

## Installation

```bash
pip install zendesk_sell_firehose_client
```


## Usage

```python
from zendesk_sell_firehose_client import ZendeskSellFirehoseClient

client = ZendeskSellFirehoseClient(bearer_token="{BEARER_TOKEN_HERE}")

# Get all leads
leads = client.get_leads()
```


## Development

### Setup

```bash
pip install -r requirements.txt
```

### Testing

```bash
pytest
```
sit-rezervo 0.1.0
Automatic booking of Sit Trening group classes
Requires Python: >=3.10,<4.0

# sit-rezervo

[![PyPI](https://img.shields.io/pypi/v/sit-rezervo)](https://pypi.org/project/sit-rezervo/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sit-rezervo)

Automatic booking of [Sit Trening group classes](https://www.sit.no/trening/gruppe)
taposockets 1.2.0
A Python library for Tapo sockets.
Requires Python: >=3.8

## Taposockets
A python library for accessing Tapo smart sockets

#### Install required libraries
```bash
pip install taposocket
```

#### Required plugin for pre-commit hook
```bash
pre-commit install --hook-type pre-commit --hook-type pre-push
```

#### Test the code
```bash
pytest -s -v test.py
```

#### Other required tools
<a href="https://docs.docker.com/get-docker/">docker</a> and 
<a href="https://docs.docker.com/compose/install/linux/">docker-compose</a>


#### Usage
```python
import os
from dotenv import load_dotenv

from taposockets import P100, P115


if __name__ == "__main__":
    load_dotenv()
    p100 = P100(os.environ.get("address"), os.environ.get("user"), os.environ.get("password"))
    p115 = P115(os.environ.get("address"), os.environ.get("user"), os.environ.get("password"))

    p100.turn_on()
    p100.turn_off()
    p100.toggle_state()

    p100.turn_on_with_delay(10)
    p100.turn_off_with_delay(10)

    print(p100.get_device_info())
    print(p100.get_device_name())
    print(p115.get_energy_usage())

```

#### Start metrics services (Prometheus + Grafana + custom metrics server)

```bash
cd metrics && docker-compose up
```

#### Example of IP and Port for used services

```bash
http://192.168.2.169:3010 # Grafana
http://192.168.2.169:9090 # Prometheus
http://192.168.2.169:8989 # Custom Prometheus Metrics
```

<figure>
    <img src="screenshots/set_datasource.png" alt="Set datasource as promethues" style="width:100%">
    <figcaption align="center"><b>Fig.1 - Set prometheus as datasource</b></figcaption>
</figure>
<br><br>
<figure>
    <img src="screenshots/import_dashboard.png" alt="Import dashboard from json" style="width:100%">
    <figcaption align="center"><b>Fig.2 - Import dashboard json</b></figcaption>
</figure>
<br><br>
<figure>
    <img src="screenshots/metrics_explorer.png" alt="Check promethues for metrics" style="width:100%">
    <figcaption align="center"><b>Fig.3 - Check promethues for metrics</b></figcaption>
</figure>
<br><br>
<figure>
    <img src="screenshots/prometheus.png" alt="Example metrics" style="width:100%">
    <figcaption align="center"><b>Fig.4 - Example prometheus custom metrics</b></figcaption>
</figure>
<br><br>
<figure>
    <img src="screenshots/dashboard.png" alt="Final Dashboard" style="width:100%">
    <figcaption align="center"><b>Fig.5 - Dashboard</b></figcaption>
</figure>