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)
Metadata
Release files for summrai 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| summrai-0.1.2.tar.gz | 2.9 kB | Without provenance | Details for summrai-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| summrai-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for summrai-0.1.2-py3-none-any.whl |
Total release size: 6.2 kB
Release files / summrai-0.1.2.tar.gz
| Download URL | summrai-0.1.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
258094a23eb9ceb96e296c636d9b912ace2912d8bb478e53b1dba0f7b853f964
|
|
BLAKE2b-256 checksum How to use checksums |
defd13ee666a773527c475b4b956267dbecf4d78a4c9627f2f500d51f172215f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / summrai-0.1.2-py3-none-any.whl
| Download URL | summrai-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14d7c7afcb74c48102f14b350b3c28c6dcdcacdb0b6c0e9336f689262e4cc986
|
|
BLAKE2b-256 checksum How to use checksums |
cfa6cf5604513b041e4232618293824d0eb01b5cceac3d8d11c8fad31ae86039
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for summrai 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.