Skip to main content

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

maria_summarize_text_ai_assistant-0.1.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file maria_summarize_text_ai_assistant-0.1.3.tar.gz.

File metadata

File hashes

Hashes for maria_summarize_text_ai_assistant-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c387fcc3d19bc4d8232b432e2a6b5ac9870d4933b6e50ae76c20f94773e7fb05
MD5 aa0eda3277f686d3b360f56a515be59f
BLAKE2b-256 c50e4c62a5b0f1a2d41e735819ac35c17e66a0dcb884d25ac9461de7187f1bc2

See more details on using hashes here.

File details

Details for the file maria_summarize_text_ai_assistant-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for maria_summarize_text_ai_assistant-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ddcf57921479f32b9cd975a6d73a739748cc6b714252d532f3a4a023b8f386c4
MD5 060e88dbf0ac16bc31e9655529bb7544
BLAKE2b-256 27a84ced193cd5cf4a528886eeea16c46b26ab4501f3504e463f245ef4c8cf31

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