Gemini-On-Python
A lightweight Python wrapper for the Google Gemini API.
Installation
pip install Gemini-On-Python
Quick Start
from gemini import Gemini
gemini = Gemini("your api key")
response = gemini.ask("In 1809, a British statesman was shot in the buttock during a duel with a fellow Cabinet minister, later went on to serve as Prime Minister of the United Kingdom for just 119 days in 1827 before dying in office, and—according to evolutionary biologist Stephen Jay Gould—indirectly helped set the stage for Charles Darwin's voyage on HMS Beagle. Who was this statesman?")
print(response)
Features
- Simple Gemini API integration
- Custom model selection
- Request timeout handling
- HTTP error handling
- Lightweight and easy to use
Requirements
- Python 3.9+
- Google Gemini API key
Configuration
You can specify a custom model:
ai = Gemini(
api_key="YOUR_API_KEY",
model="gemini-3.5-flash-lite"
)
License
This project is licensed under the MIT License.
Metadata
Release files for gemini-on-python 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 | Actions |
|---|---|---|---|---|
| gemini_on_python-0.1.1.tar.gz | 2.8 kB | With provenance | Details for gemini_on_python-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gemini_on_python-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gemini_on_python-0.1.1-py3-none-any.whl |
Total release size: 6.0 kB
Release files / gemini_on_python-0.1.1.tar.gz
| Download URL | gemini_on_python-0.1.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
430103bd226f424826fee5e779bd77bdbd972846d29faba9489f03a2e85b0f6e
|
|
BLAKE2b-256 checksum How to use checksums |
03bcfb297dd03c03f10b7cce4448d6ae99b65800e265cd0dfdc80ae49b12886e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / gemini_on_python-0.1.1-py3-none-any.whl
| Download URL | gemini_on_python-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9ee5bb0fdb5e5c3f3bbfe567134c5f8bc0b8039f4bbfd9145ef5aa8d45ae02c
|
|
BLAKE2b-256 checksum How to use checksums |
25adffd4cdeeb979e66f909d5b2cd7e4f4b652805528a8965a2aa8f7b0804612
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for gemini-on-python 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gemini_on_python-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA 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.