DeepAI Python Client
⚠️ Educational Purpose Notice
This package is created solely for educational and learning purposes. It is designed to help developers understand API integration, Python package development, and programming concepts.
If you represent any organization or service and have concerns about this educational project, please feel free to reach out to us politely. We are committed to resolving any issues through friendly communication and will gladly address your concerns or remove the package if requested. No legal proceedings are necessary - just send us a message!
A comprehensive Python client for the DeepAI API, providing easy access to chat completions, text-to-speech, speech-to-text, and image generation services.
🚀 Features
- Chat Completions: OpenAI-compatible interface with multiple models (
standard,online,math) - Character Chat Styles: Over 50+ character styles including
goku,gojo_9,ai-code,mathematics - Text-to-Speech (TTS): Convert text to natural speech
- Speech-to-Text (STT): Transcribe audio files to text
- Image Generation: Create images from text descriptions
- Async Support: Full async/await support for all operations
- Session Management: Automatic chat history management
- File Uploads: Support for multipart file uploads
- Type Safety: Full TypeScript-style type hints
📦 Installation
pip install deepai-python
For development:
pip install deepai-python[dev]
🔧 Quick Start
Basic Chat Completion
from deepai import DeepAI
client = DeepAI()
response = client.chat.completions.create(
model="standard",
chat_style="chatgpt-alternative",
messages=[{"role": "user", "content": "Hello, how are you?"}]
)
print(response['choices'][0]['message']['content'])
Character Chat (Anime Style)
response = client.chat.completions.create(
model="standard",
chat_style="goku", # Dragon Ball Z Goku style
messages=[{"role": "user", "content": "Tell me about your training!"}]
)
Math Problems
from deepai import ChatMath
math_client = ChatMath(api_key="your-api-key")
response = math_client.create(
messages=[{"role": "user", "content": "What is 25 × 35? Show steps."}],
model="math"
)
Text-to-Speech
from deepai import TextToSpeech
tts = TextToSpeech(api_key="your-api-key")
audio_response = tts.speak(
text="Hello, this is a test of text to speech!",
voice="en-US-AriaNeural"
)
# Save audio file
with open("output.wav", "wb") as f:
f.write(audio_response['audio_data'])
Async Usage
import asyncio
from deepai import AsyncDeepAI
async def main():
client = AsyncDeepAI()
response = await client.chat.completions.create(
model="online",
chat_style="ai-code",
messages=[{"role": "user", "content": "Latest AI news?"}]
)
print(response['choices'][0]['message']['content'])
asyncio.run(main())
📚 Documentation
🛠️ Available Models
- standard: General-purpose chat model
- online: Web-enabled model with real-time information
- math: Specialized model for mathematical problems
🎭 Popular Chat Styles
chatgpt-alternative: Standard AI assistantgoku: Dragon Ball Z Goku personalitygojo_9: Jujutsu Kaisen Gojo Satoruai-code: Programming-focused responsesmathematics: Math-oriented explanations- And 50+ more characters and styles!
📁 Project Structure
deepai-package/
├── src/deepai/ # Main package
│ ├── clients/ # Client implementations
│ │ ├── sync.py # Synchronous clients
│ │ ├── async_client.py # Asynchronous clients
│ │ └── specialized.py # Specialized clients
│ ├── utils/ # Utility modules
│ │ ├── types.py # Type definitions
│ │ └── helpers.py # Helper functions
│ └── __init__.py # Package exports
├── tests/ # Test suite
├── examples/ # Usage examples
├── docs/ # Documentation
└── pyproject.toml # Project configuration
🧪 Testing
# Run tests
pytest
# Run with coverage
pytest --cov=src/deepai
# Run specific test
pytest tests/test_chat.py
🤝 Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes and add tests
- Run tests:
pytest - Submit a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
💡 Support
If you encounter any issues or have questions, please:
- Check the documentation
- Look through existing issues
- Create a new issue with detailed information
Made with ❤️ for the AI community
Metadata
Release files for deepai-python 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| deepai_python-0.0.1.tar.gz | 20.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deepai_python-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.3 kB
Release files / deepai_python-0.0.1.tar.gz
| Download URL | deepai_python-0.0.1.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dcd46901a201bb87c4955644a81d36ed8a7aec2a327976dd6d598bc1b870212
|
|
BLAKE2b-256 checksum How to use checksums |
cf84affd3e1db7a9ce53929f5e8d09ce1fbcaac7907d93ce8a15bb8939978b17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / deepai_python-0.0.1-py3-none-any.whl
| Download URL | deepai_python-0.0.1-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c1b3fc7edc20bc75ce8e036238f1eccf5b4d274ef6a21aa1a7e7d64292607a6
|
|
BLAKE2b-256 checksum How to use checksums |
a27db48924be625662f6757ee959606b7ea78387f1914fd017c947703ac73125
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Security for deepai-python 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.