Metadata-Version: 2.1
Name: freeplay
Version: 0.2.32
Summary: 
License: MIT
Author: FreePlay Engineering
Author-email: engineering@freeplay.ai
Requires-Python: >=3.8,<4
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: anthropic (>=0.7.7,<0.8.0)
Requires-Dist: click (==8.1.7)
Requires-Dist: dacite (>=1.8.0,<2.0.0)
Requires-Dist: openai (>=1,<2)
Requires-Dist: pystache (>=0.6.5,<0.7.0)
Requires-Dist: requests (>=2.20.0,<3.0.0dev)
Description-Content-Type: text/markdown

# Freeplay Python SDK 

The official Python SDK for easily accessing the Freeplay API.

## Installation

```
pip install freeplay
```

## Compatibility

- Python 3.8+

## Usage

```python
# Import the SDK
from freeplay import Freeplay

# Initialize the client
fp_client = Freeplay(
    provider_config=ProviderConfig(openai=OpenAIConfig(OPENAI_API_KEY)),
    freeplay_api_key=FREEPLAY_API_KEY,
    api_base=f'https://{FREEPLAY_CUSTOMER_NAME}.freeplay.ai/api')

# Completion Request
completion = fp_client.get_completion(project_id=FREEPLAY_PROJECT_ID,
                                          template_name="template",
                                          variables={"input_variable_name": "input_variable_value"})
```

See the [Freeplay Docs](https://docs.freeplay.ai) for more usage examples and the API reference.


## License

This SDK is released under the [MIT License](LICENSE).

