Metadata-Version: 2.5
Name: chattonpy
Version: 1.2.5
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*

## Installation

```bash
pip install ChattoNPy
```

or via UV:

```bash
uv tool install 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)
```