Skip to main content

Secure AI helper library using external API keys and free Gemini models.

Project description

summrai

summrai is a lightweight and secure Python library for interacting with AI text-generation models.
It is designed for use in Flask applications or any Python project that needs AI processing.

No API keys stored inside the library
Supports free Google Gemini API (OpenAI-compatible)
Provides helper utilities for summarizing and formatting text


🚀 Installation


📌 Usage Example

from summrai import AIClient, summarize_text

# Create the AI client (API key must be provided manually)
client = AIClient(api_key="YOUR_GEMINI_API_KEY")

# Basic response
print(client.get_response("Explain machine learning."))

# Summarization
text = "Artificial Intelligence is transforming industries..."
summary = summarize_text(text, client)
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

summrai-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

summrai-0.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file summrai-0.1.1.tar.gz.

File metadata

  • Download URL: summrai-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for summrai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c18260e1eb8ba0075641899c0c79999e0081cc7497d834d0f60cbcb85eaee3d3
MD5 c20a9ff725ec999cfadef79426295352
BLAKE2b-256 0ffad8edb75eef728f811f4f8f5fdb52f42a72bdca34dbf5f637b608cf94dc06

See more details on using hashes here.

File details

Details for the file summrai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: summrai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for summrai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f248b7de3fd0608b19347e54ec750f89438fc441843ddece989e9150d3119789
MD5 733298d82f69169a32a870b3e6bf1648
BLAKE2b-256 5362e500c6aa715a4559d0d1dec93c931278dbe5b177bbf6ddccbddad93f7c51

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