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.0.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.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: summrai-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e1d3925b0cd9a465be0acb239444b6419fb2c41f3059ac072d0d237174538d8f
MD5 4336e549985afe7b129b7cf97abadab1
BLAKE2b-256 d61177a78429f66653de0847dc6b5d843221acd2adb4a4b4d388cfb5a00aa9d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: summrai-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6833392c198150fdaba387d72025693c626e630485bbf37761295a6292efc3c4
MD5 e831dc9ae9f54e9da7cf309a139f8a2f
BLAKE2b-256 b5768bf03bd7ed50b99d70ed26f4068ec027546ac00e1adef998b8e6d247769b

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