Metadata-Version: 2.5
Name: chattonpy
Version: 1.4.8
Summary: A simple python CLI chat interface and a python module for Gemini API
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: google-genai
Description-Content-Type: text/markdown

# ChattoNPy
#### *A simple python CLI chat interface and module for Gemini API*
[![PyPI Downloads](https://static.pepy.tech/personalized-badge/chattonpy?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=Downloads)](https://pepy.tech/projects/chattonpy)

## Installation

### Install as a CLI Tool

```bash
pipx install ChattoNPy
```

or via UV:

```bash
uv tool install ChattoNPy
```

### Install as a Module

```bash
pip install ChattoNPy
```

or via UV:

```bash
uv add ChattoNPy
```

## Usage

### CLI 
Set the API key as an environment variable:

```powershell
$env:GEMINI_API_KEY="YOUR_API_KEY"
```

On linux/macOS:
```bash
export GEMINI_API_KEY="YOUR_API_KEY"
```

Then run the tool:

```bash
ChattoNPy
```

### Module

```python
from chattonpy import generate
import os

response = generate("Tell me a joke", os.environ.get("GEMINI_API_KEY"))
print(response)

response = generate("Tell me a joke", os.environ.get("GEMINI_API_KEY"))
print(response)
```
