Metadata-Version: 2.1
Name: amari-python
Version: 0.0.2
Summary: Python client library for the Amari API
Home-page: https://github.com/sambuddhabasu/amari-python
Author: Amari
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7.1
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.20
Requires-Dist: tqdm
Requires-Dist: typing_extensions; python_version < "3.8"
Requires-Dist: aiohttp
Provides-Extra: dev
Requires-Dist: black~=21.6b0; extra == "dev"
Requires-Dist: pytest==6.*; extra == "dev"
Requires-Dist: pytest-asyncio; extra == "dev"
Requires-Dist: pytest-mock; extra == "dev"
Provides-Extra: datalib
Requires-Dist: numpy; extra == "datalib"
Requires-Dist: pandas>=1.2.3; extra == "datalib"
Requires-Dist: pandas-stubs>=1.1.0.11; extra == "datalib"
Requires-Dist: openpyxl>=3.0.7; extra == "datalib"
Provides-Extra: wandb
Requires-Dist: wandb; extra == "wandb"
Requires-Dist: numpy; extra == "wandb"
Requires-Dist: pandas>=1.2.3; extra == "wandb"
Requires-Dist: pandas-stubs>=1.1.0.11; extra == "wandb"
Requires-Dist: openpyxl>=3.0.7; extra == "wandb"
Provides-Extra: embeddings
Requires-Dist: scikit-learn>=1.0.2; extra == "embeddings"
Requires-Dist: tenacity>=8.0.1; extra == "embeddings"
Requires-Dist: matplotlib; extra == "embeddings"
Requires-Dist: plotly; extra == "embeddings"
Requires-Dist: numpy; extra == "embeddings"
Requires-Dist: scipy; extra == "embeddings"
Requires-Dist: pandas>=1.2.3; extra == "embeddings"
Requires-Dist: pandas-stubs>=1.1.0.11; extra == "embeddings"
Requires-Dist: openpyxl>=3.0.7; extra == "embeddings"

# Amari Python Library

Amari connects your OpenAI calls to the internet. It automatically understands when your OpenAI calls need relevant real-time information from the internet and, augments your calls with them.

## Installation

You can install this package by running

```bash
pip install amari-python
```

### Example

```python
from amari import openai
openai.amari_api_key = "..."
openai.api_key = "sk-..."

chat_completion = openai.ChatCompletion.create(
    model="gpt-3.5-turbo", 
    messages=[{
        "role": "user",
        "content": "What's the weather in San Francisco today?"
    }],
    temperature=0,
)

print(chat_completion.choices[0].message.content)
# The current weather in San Francisco is 69°F with mostly sunny conditions.
```
