# CyberChipped
[![PyPI - Version](https://img.shields.io/pypi/v/cyberchipped)](https://pypi.org/project/cyberchipped/)
![CyberChipped Logo](https://cyberchipped.com/375.png)
CyberChipped is a Python library that provides an AI-powered conversation interface using OpenAI's Assistant API. It supports both text and audio-based interactions, with features like thread management, message persistence, and custom tool integration.
## Features
- Streaming text-based conversations with AI
- Audio transcription and streaming text-to-speech conversion
- Thread management for maintaining conversation context
- Message persistence using SQLite or MongoDB
- Custom tool integration for extending AI capabilities
## Installation
You can install CyberChipped using pip:
```bash
pip install cyberchipped
```
## Usage
Here's a basic example of how to use CyberChipped:
```python
from cyberchipped import AI, SQLiteDatabase
async def main():
database = SQLiteDatabase("conversations.db")
async with AI("your_openai_api_key", "AI Assistant", "Your instructions here", database) as ai:
user_id = "user123"
response = await ai.text(user_id, "Hello, AI!")
async for chunk in response:
print(chunk, end="", flush=True)
print()
# Run the async main function
import asyncio
asyncio.run(main())
```
## Contributing
Contributions to CyberChipped are welcome! Please feel free to submit a Pull Request.
## License
This project is licensed under the MIT License - see the LICENSE file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/truemagic-coder/cyberchipped",
"name": "cyberchipped",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "ai, openai",
"author": "Bevan Hunt",
"author_email": "bevan@bevanhunt.com",
"download_url": "https://files.pythonhosted.org/packages/3d/ff/4af1f0826ab5b3c004e8d6f86f43e431a8d4952dc9e8eadf3c425480c2d0/cyberchipped-2.1.8.tar.gz",
"platform": null,
"description": "# CyberChipped\n\n[![PyPI - Version](https://img.shields.io/pypi/v/cyberchipped)](https://pypi.org/project/cyberchipped/)\n\n![CyberChipped Logo](https://cyberchipped.com/375.png)\n\nCyberChipped is a Python library that provides an AI-powered conversation interface using OpenAI's Assistant API. It supports both text and audio-based interactions, with features like thread management, message persistence, and custom tool integration.\n\n## Features\n\n- Streaming text-based conversations with AI\n- Audio transcription and streaming text-to-speech conversion\n- Thread management for maintaining conversation context\n- Message persistence using SQLite or MongoDB\n- Custom tool integration for extending AI capabilities\n\n## Installation\n\nYou can install CyberChipped using pip:\n\n```bash\npip install cyberchipped\n```\n\n## Usage\n\nHere's a basic example of how to use CyberChipped:\n\n```python\nfrom cyberchipped import AI, SQLiteDatabase\n\nasync def main():\n database = SQLiteDatabase(\"conversations.db\")\n async with AI(\"your_openai_api_key\", \"AI Assistant\", \"Your instructions here\", database) as ai:\n user_id = \"user123\"\n response = await ai.text(user_id, \"Hello, AI!\")\n async for chunk in response:\n print(chunk, end=\"\", flush=True)\n print()\n\n# Run the async main function\nimport asyncio\nasyncio.run(main())\n```\n\n## Contributing\n\nContributions to CyberChipped are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Build AI Assistants Fast",
"version": "2.1.8",
"project_urls": {
"Homepage": "https://github.com/truemagic-coder/cyberchipped",
"Repository": "https://github.com/truemagic-coder/cyberchipped"
},
"split_keywords": [
"ai",
" openai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "85ab7a507314c13e32443eadc43ebe281a2d98f99131aac14da93f6484dd4eee",
"md5": "23cd102cc4268d03b63ccd4ae260ff5e",
"sha256": "72c4b41e6b65ab7e1f8cc74c0c2b634347f77a6b99933582f0b41895ccfe632e"
},
"downloads": -1,
"filename": "cyberchipped-2.1.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "23cd102cc4268d03b63ccd4ae260ff5e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 6056,
"upload_time": "2024-11-10T17:36:25",
"upload_time_iso_8601": "2024-11-10T17:36:25.863459Z",
"url": "https://files.pythonhosted.org/packages/85/ab/7a507314c13e32443eadc43ebe281a2d98f99131aac14da93f6484dd4eee/cyberchipped-2.1.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3dff4af1f0826ab5b3c004e8d6f86f43e431a8d4952dc9e8eadf3c425480c2d0",
"md5": "d441f1b5c4f830b63636baee1c317bfb",
"sha256": "f10f1b3304e555577b1fd5d9e02f53bb6cf8eb895eb2cf4d446018558404a34f"
},
"downloads": -1,
"filename": "cyberchipped-2.1.8.tar.gz",
"has_sig": false,
"md5_digest": "d441f1b5c4f830b63636baee1c317bfb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 5471,
"upload_time": "2024-11-10T17:36:27",
"upload_time_iso_8601": "2024-11-10T17:36:27.488067Z",
"url": "https://files.pythonhosted.org/packages/3d/ff/4af1f0826ab5b3c004e8d6f86f43e431a8d4952dc9e8eadf3c425480c2d0/cyberchipped-2.1.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-10 17:36:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "truemagic-coder",
"github_project": "cyberchipped",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "cyberchipped"
}