Metadata-Version: 2.1
Name: groq
Version: 0.2.0
Summary: The GroqAPI Python SDK
Author: Rohit Khaire
Author-email: rkhaire@groq.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: google-api-python-client (>=2.111.0,<3.0.0)
Requires-Dist: google-cloud (>=0.34.0,<0.35.0)
Requires-Dist: grpc-stubs (>=1.53.0.5,<2.0.0.0)
Requires-Dist: grpcio (>=1.60.0,<2.0.0)
Requires-Dist: protobuf (==3.20.3)
Requires-Dist: types-protobuf (>=4.24.0.4,<5.0.0.0)
Requires-Dist: types-requests (>=2.31.0.20231231,<3.0.0.0)
Description-Content-Type: text/markdown

# GroqAPI for Python
[![PyPI version](https://badge.fury.io/py/groq.svg)](https://badge.fury.io/py/groq)

## Installation 

To install the GroqAPI Python Library, you can just use `pip`:
```bash
pip install groq
```

## Usage

Make sure to export your access key to the `GROQ_SECRET_ACCESS_KEY` environment variable.

```python
from groq.cloud.core import ChatCompletion

with ChatCompletion("llama2-70b-4096") as chat:

    prompt = "Is AI fun or what?"

    response, _, _ = chat.send_chat(prompt)

    print(response)
```
Look at our `/examples` folder for more examples.

