A Gemini AI wrapper with API key rotation and system prompt support.
Project description
Tenshi
Tenshi is a lightweight Gemini AI API wrapper designed for speed, reliability, and simplicity — especially for users relying on free API keys.
🔥 Features
- 🔁 API Key Rotation – Auto-switches between multiple keys to bypass rate limits
- 💬 System Prompt Support – Define a system role for consistent responses
- 🎛️ Custom Temperature / Top-P – Fine-tune creativity and randomness
- 🆓 Built for Free API Users – Works around quota and rate issues
✨ Installation
pip install tenshi
🚀 Quick Example
from tenshi import Tenshi
bot = Tenshi(api_keys=["your_api_key"])
bot.set_system("You are a helpful assistant.")
response = bot.generate("Hello!")
print(response)
📦 Use Cases
- Avoid rate limits with free or limited API keys
- Chain multiple keys for reliability
- Add system prompts for role-based responses (e.g., tutor, assistant, etc.)
- Quickly prototype chatbots or AI tools using Gemini
👤 Author
Made with purpose by @rubinexe
⚖️ License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tenshi-0.1.1.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tenshi-0.1.1.tar.gz.
File metadata
- Download URL: tenshi-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39106a10dff50f4af27d50bdc6e14e338b5127f4abd192619a54d36e3b4688cc
|
|
| MD5 |
1825de0f733d967706d633e9ee7daa77
|
|
| BLAKE2b-256 |
2228979c7e0e88623261d4a3dcd442574b4debf79b8cbfafe18c58d3542e4b59
|
File details
Details for the file tenshi-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tenshi-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fa44688e5e4831c1557e758dac773bae843fa5aa0132b4c3a56d004a2d589b3
|
|
| MD5 |
ed2964dd85b29d89fd3858f590db6979
|
|
| BLAKE2b-256 |
89d1dd9eda05aa2d3d6d39bb082fc9254ffec3303a66111d0805667947f7eedd
|