# puter
[![PyPI version](https://badge.fury.io/py/puter.svg)](https://badge.fury.io/py/puter)
[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
A simple Python client for Puter.AI API that lets you use GPT-4 and Claude models for free!
## Installation
```bash
pip install puter
```
## Quick Start
```python
from puter import ChatCompletion
# Basic completion
response = ChatCompletion.create(
messages=[{"role": "user", "content": "tell me a joke"}],
model="gpt-4o-mini",
driver="openai-completion",
api_key="your-api-key"
)
# Streaming response
response = ChatCompletion.create(
messages=[{"role": "user", "content": "tell me a story"}],
model="claude-3-5-sonnet-latest",
driver="claude",
stream=True,
api_key="your-api-key"
)
```
## Features
- OpenAI-style interface
- Multiple models supported:
- GPT-4o-mini
- GPT-4o
- Claude 3.5 Sonnet
- Streaming support
- Clean and simple API
## Models & Drivers
| Model | Driver |
|-------|---------|
| gpt-4o-mini | openai-completion |
| gpt-4o | openai-completion |
| claude-3-5-sonnet-latest | claude |
## Version History
- 0.0.13: Fixed README formatting
- 0.0.12: Updated README
- 0.0.11: Latest release with improved stability
- 0.0.1: Initial release
## License
MIT License - feel free to use in your projects!
Raw data
{
"_id": null,
"home_page": "https://github.com/Nemyam/puter",
"name": "puter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "ai, gpt4, claude, puter, chatbot, llm, gpt-4, anthropic",
"author": "Nemyam",
"author_email": "nemyam0@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0f/00/d1e3d18e1d1325d7e069efdba2cb1f428ab3cf1bf0d787a656be73f5567e/puter-0.0.13.tar.gz",
"platform": null,
"description": "# puter\r\n\r\n[![PyPI version](https://badge.fury.io/py/puter.svg)](https://badge.fury.io/py/puter)\r\n[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n\r\nA simple Python client for Puter.AI API that lets you use GPT-4 and Claude models for free!\r\n\r\n## Installation\r\n```bash\r\npip install puter\r\n```\r\n\r\n## Quick Start\r\n```python\r\nfrom puter import ChatCompletion\r\n\r\n# Basic completion\r\nresponse = ChatCompletion.create(\r\n messages=[{\"role\": \"user\", \"content\": \"tell me a joke\"}],\r\n model=\"gpt-4o-mini\",\r\n driver=\"openai-completion\",\r\n api_key=\"your-api-key\"\r\n)\r\n\r\n# Streaming response\r\nresponse = ChatCompletion.create(\r\n messages=[{\"role\": \"user\", \"content\": \"tell me a story\"}],\r\n model=\"claude-3-5-sonnet-latest\",\r\n driver=\"claude\",\r\n stream=True,\r\n api_key=\"your-api-key\"\r\n)\r\n```\r\n\r\n## Features\r\n- OpenAI-style interface\r\n- Multiple models supported:\r\n- GPT-4o-mini\r\n- GPT-4o\r\n- Claude 3.5 Sonnet\r\n- Streaming support\r\n- Clean and simple API\r\n\r\n## Models & Drivers\r\n| Model | Driver |\r\n|-------|---------|\r\n| gpt-4o-mini | openai-completion |\r\n| gpt-4o | openai-completion |\r\n| claude-3-5-sonnet-latest | claude |\r\n\r\n## Version History\r\n- 0.0.13: Fixed README formatting\r\n- 0.0.12: Updated README\r\n- 0.0.11: Latest release with improved stability\r\n- 0.0.1: Initial release\r\n\r\n## License\r\nMIT License - feel free to use in your projects!\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python client for Puter AI API - free access to GPT-4 and Claude",
"version": "0.0.13",
"project_urls": {
"Homepage": "https://github.com/Nemyam/puter"
},
"split_keywords": [
"ai",
" gpt4",
" claude",
" puter",
" chatbot",
" llm",
" gpt-4",
" anthropic"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2bc5a70b31de379a8f76aa6c012d5f62facc36adf1af6fdf0cbee4906c38d3eb",
"md5": "ac5cdda8e64617efcbf6a4e4070cbd77",
"sha256": "fb35488ece17e1bb2932b19c196c7c4dc963eb7af371a18f614f05caa740c3cf"
},
"downloads": -1,
"filename": "puter-0.0.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ac5cdda8e64617efcbf6a4e4070cbd77",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4873,
"upload_time": "2025-01-06T08:38:29",
"upload_time_iso_8601": "2025-01-06T08:38:29.280215Z",
"url": "https://files.pythonhosted.org/packages/2b/c5/a70b31de379a8f76aa6c012d5f62facc36adf1af6fdf0cbee4906c38d3eb/puter-0.0.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0f00d1e3d18e1d1325d7e069efdba2cb1f428ab3cf1bf0d787a656be73f5567e",
"md5": "9e89072d0e644e860ad446f46ef348db",
"sha256": "351e98cfec09430ae55d0bd0b5603b001da2acd6ca657fed8313c9b20d429de2"
},
"downloads": -1,
"filename": "puter-0.0.13.tar.gz",
"has_sig": false,
"md5_digest": "9e89072d0e644e860ad446f46ef348db",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 4287,
"upload_time": "2025-01-06T08:38:31",
"upload_time_iso_8601": "2025-01-06T08:38:31.522258Z",
"url": "https://files.pythonhosted.org/packages/0f/00/d1e3d18e1d1325d7e069efdba2cb1f428ab3cf1bf0d787a656be73f5567e/puter-0.0.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-06 08:38:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Nemyam",
"github_project": "puter",
"github_not_found": true,
"lcname": "puter"
}