Skip to main content

A helper library for integrating the Google Gemini API into web applications.

Project description

Gemini Assistant Library

gemini_assistant is a simple Python package designed to streamline interactions with the Google Gemini API, making it easy to integrate AI functionality into your applications, such as a Flask web app.

Installation

Clone the repository/Navigate to the directory.

Install locally (simulating PyPI):

pip install .

Usage

Before use, set your API key:

export GEMINI_API_KEY="YOUR_API_KEY_HERE"

Example

from gemini_assistant import get_response

Basic text generation

query = "Explain the concept of quantum entanglement in simple terms." ai_output = get_response(query) print(ai_output)

Summarization helper

long_text = "..." summary = summarize_text(long_text) print(summary)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_assistant-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_assistant-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file gemini_assistant-0.1.0.tar.gz.

File metadata

  • Download URL: gemini_assistant-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.1

File hashes

Hashes for gemini_assistant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43bf228ba10dd9fff965835c73805c1f87b80a8a3fa22a207a5c05af022bc4c4
MD5 475374008b6799aff2674e7eacacfa4a
BLAKE2b-256 40d1fb82da1015ae52a1279497ae18c2cffa80d7e43d244cfcd0132d711b293c

See more details on using hashes here.

File details

Details for the file gemini_assistant-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gemini_assistant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92ddcdb67f17dd235726c75a984320e2e2d73ab2971e2baafc812d8c0b4a32b4
MD5 d47a2b18bd162f52fec617906291d706
BLAKE2b-256 603b1f3cdebf916185128b31b800dca77caa11f5689959a07ce85f77e76975ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page