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



📌 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.2.tar.gz (2.9 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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: summrai-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 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.2.tar.gz
Algorithm Hash digest
SHA256 258094a23eb9ceb96e296c636d9b912ace2912d8bb478e53b1dba0f7b853f964
MD5 22d4274d618d4697897bad242e5f5ed4
BLAKE2b-256 defd13ee666a773527c475b4b956267dbecf4d78a4c9627f2f500d51f172215f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: summrai-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 14d7c7afcb74c48102f14b350b3c28c6dcdcacdb0b6c0e9336f689262e4cc986
MD5 eefc35ab536a176b812c0f4a8e686790
BLAKE2b-256 cfa6cf5604513b041e4232618293824d0eb01b5cceac3d8d11c8fad31ae86039

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