A simple AI-powered text summarization helper using Groq API.
Project description
maria_summarize_text_ai_assistant
A simple Python library to summarize long text using an AI API (Groq).
Features
- AI-powered text summarization
- Clean API design
- Docstrings included
- Easy to use in Flask or any Python app
Installation
After uploading to PyPI:
pip install maria_summarize_text_ai_assistant
pip install google-generativeai # if using Gemini
# or
pip install groq python-dotenv # if using Groq
##Usage
import os
from maria_summarize_text_ai_assistant import summarize_text
# Set your API key in environment
os.environ["GEMINI_API_KEY"] = "YOUR_GEMINI_API_KEY" # for Gemini
# or
os.environ["GROQ_API_KEY"] = "YOUR_GROQ_API_KEY" # for Groq
long_text = "Artificial intelligence is transforming industries..."
summary = summarize_text(long_text)
print(summary)
##Next Steps
Replace your old summarize.py with the updated version for Gemini or Groq.
Update setup.py dependencies and bump version (e.g., 0.1.2).
Rebuild your package:
python setup.py sdist bdist_wheel
Upload to PyPI:
python -m twine upload dist/*
In your Flask app, just set the corresponding API key environment variable — your code will work without changing imports.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file maria_summarize_text_ai_assistant-0.1.4.tar.gz.
File metadata
- Download URL: maria_summarize_text_ai_assistant-0.1.4.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
288b8787ffa87e9efb6187c9ddc6fea75eedb46fcb7197c98adc1f6cfe960279
|
|
| MD5 |
983a853d6d2be27ad55be4e7ad798aa7
|
|
| BLAKE2b-256 |
ceefcae13d964b3c01909c6480fc33094032a640636484da9ee5ee842a9a04d8
|
File details
Details for the file maria_summarize_text_ai_assistant-0.1.4-py3-none-any.whl.
File metadata
- Download URL: maria_summarize_text_ai_assistant-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76c2d0046d3468ec3cc423e35eee4b8498e414668d30073bd19f7317f060ac97
|
|
| MD5 |
49e8a98583f2cd6305edb6eafbffc394
|
|
| BLAKE2b-256 |
414e403c70ee3cb74640a60b0e7f4645c453c5f7ddcd7e384af51b208188cd46
|