Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gemini-on-python 0.1.2
File Size Uploaded Provenance Actions
gemini_on_python-0.1.2.tar.gz 2.8 kB With provenance Details for gemini_on_python-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gemini-on-python 0.1.2
File Interpreter ABI Platform Actions
gemini_on_python-0.1.2-py3-none-any.whl Python 3 none any Details for gemini_on_python-0.1.2-py3-none-any.whl

Total release size: 6.0 kB

Release files / gemini_on_python-0.1.2.tar.gz

Download URL gemini_on_python-0.1.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2c5105e55c751df601367b7b46537d5d28f91f3918f2720387e5ea4623f1e9bd
BLAKE2b-256 checksum
How to use checksums
f052bc2c6772d764cf94cb04d44ad1e1521ced96a675a01743ef79a8bf6ceb51
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 log

Release files / gemini_on_python-0.1.2-py3-none-any.whl

Download URL gemini_on_python-0.1.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c86644161bd74fe4b867906e6a1f47ab0755e416df35d58fe81087e7e27b4378
BLAKE2b-256 checksum
How to use checksums
ac1d5d6addbdce5d5dcdd6b0c5e285d3abb98540013f81d79dc8c20768e2eaa3
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 log

Security for gemini-on-python 0.1.2

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.

Select from 2 files

Attestation for gemini_on_python-0.1.2.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 log

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page