🤖 gemini_helper
Use Gemini API with OpenAI Agent SDK easily!
This package allows students and developers to use free Gemini models (like gemini-2.0-flash) with the powerful OpenAI Agent SDK.
🚀 Installation
Using uv (recommended):
uv add gemini-agent-helper
Or via pip:
pip install gemini-agent-helper
⚙️ Environment Setup
Create a .env file in your project root and add your Gemini API key:
GEMINI_API_KEY=your_gemini_api_key_here
📌 You can get your key from Google AI Studio
💡 How to Use
✅ Default (uses gemini-2.0-flash)
from gemini_helper.core import get_gemini_model
model = get_gemini_model()
⚡ Custom model (like gemini-1.0-pro)
model = get_gemini_model("gemini-1.0-pro")
💻 Full Example
from gemini_helper.core import get_gemini_model
from agents import Agent, Runner
model = get_gemini_model()
agent = Agent(
name="Helper",
instructions="You are a helpful assistant",
model=model
)
result = Runner.run_sync(agent, input="What is Python?")
print(result.final_output, end="")
📆 Features
- 🔐 Secure API key handling via
.env - 🔄 Compatible with OpenAI Agent SDK
- 💸 No need for OpenAI's paid API – fully free using Gemini
- ⚙️ Optional model switching (e.g.
gemini-1.0-pro,gemini-2.0-pro) - 🧹 Easy to integrate into agent-based workflows
🛠️ Dependencies
This package depends on:
openai-agent-sdkpython-dotenv
These are automatically installed with the package.
🧑💻 Author
Made with ❤️ by Huriya Syed Empowering students to build free agents using Gemini + OpenAI SDK.
📬 Contact / Support
Feel free to open an issue or connect with me on LinkedIn Or email me at: huriyasyed462@gmail.com
Metadata
Release files for gemini-agent-helper 0.1.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 | |
|---|---|---|---|---|
| gemini_agent_helper-0.1.1.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gemini_agent_helper-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / gemini_agent_helper-0.1.1.tar.gz
| Download URL | gemini_agent_helper-0.1.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf1e36b61fc63c047dcdda1a9c2e693efe5b677c3bc7b74eaef3faac5703a1b1
|
|
BLAKE2b-256 checksum How to use checksums |
1404dee38df61580049bf199c72975bb5ace95f508a9c3ff3ae3605b6395e920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / gemini_agent_helper-0.1.1-py3-none-any.whl
| Download URL | gemini_agent_helper-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21369c60e99e2f36d69164503f94a9cf04dfe23df1d180414067043492eb7e81
|
|
BLAKE2b-256 checksum How to use checksums |
b6e778d892b63f0fc0d78c82c0fed4db0186c8d1c33b369f80fd6ce90d40225e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for gemini-agent-helper 0.1.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.