semvec/pypi-packages huggingface dataset:
pyevonic 0.0.21
A wrapper for the Evoflame API v1
Requires Python: >=3.6

# Evonic Fire API Client

## About

This package allows you to control and monitor an Evonic Fire, over a local WebSocket connection.  It has been tested 
with the Linnea, so other fires may or may not be compatible

## Installation

`pip install pyevonic`

## Usage

```py
import asyncio

from pyevonic import Evonic

ev = Evonic("192.168.1.190")

async def main():
    await ev.connect()
    await ev.listen(callback=log)

def log(e):
    print(e.__dict__)


if __name__ == "__main__":
    asyncio.run(main())
```

## Available Methods

### Connect to the WebSocket of an Evonic Fire.
```py
connect()
```

### Listen for events on the Evonic WebSocket.
```py
listen(callback=method)
```

### Disconnect from a WebSocket
```py
disconnect()
```

### Control the main lighting for the Evonic Fire.
```python
light_power(cmd) 
```
Valid `cmd` values: `on` `off` `toggle`

### Toggles the feature light of an Evonic Fire
```python
toggle_feature_light()
```

### Sets the brightness of each RGB strip
```python
set_light_brightness(rgb_id, brightness)
```
`rgb_id` values can be found in `Device.info.modules`

`brightness` must be an integer from `0` to `255`

### Sets the animation speed of each RGB strip
```python
set_animation_speed(rgb_id, speed)
```
`rgb_id` values can be found in `Device.info.modules`

`speed` must be an integer from `0` to `255`

### Sets the heater temperature on an Evonic Fire
```python
set_temperature(temp)
```
`temp` must be an integer between `50` and `90` for fahrenheit, and `10` and `33` for celsius

### Controls the Heater for the Evonic Fire.
```python
heater_power(cmd)
```
Valid `cmd` values: `on` `off` `toggle`
ocr-genai-beta 0.1.4
A package for performing OCR and interpreting the output using OpenAI and Gemini models.
Requires Python: >=3.6

# OCR Package

This Python package allows you to perform OCR on images using Tesseract and interpret the results using generative AI models like OpenAI's GPT and Google's Gemini.

## Installation

To install the package, use:

pip install ocr_genAI

## Usage

```python

from ocr_genai import perform_ocr, interpret_with_openai, interpret_with_gemini,interpret_with_claude



# Replace with your actual image path and API keys
image_path = "image.jpg"  # Ensure this image exists in your directory
openai_api_key = "YOUR_OPENAI_API_KEY"
gemini_api_key = "YOUR_GEMINI_API_KEY"
claude_api_key = "YOUR_CLAUDE_API_KEY"

# Perform OCR
ocr_output = perform_ocr(image_path)
if ocr_output:
    print("OCR Output:\n", ocr_output)

    # Interpret with OpenAI
    openai_response = interpret_with_openai(ocr_output, openai_api_key)
    if openai_response:
        print("OpenAI Response:\n", openai_response)

    # Interpret with Gemini
    gemini_response = interpret_with_gemini(ocr_output, gemini_api_key)
    if gemini_response:
        print("Gemini Response:\n", gemini_response)
    #interpret with Claude
    claude_response = interpret_with_claude(ocr_output, claude_api_key)
        if claude_response:
            print("Claude Response:\n", claude_response)