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.4.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.4.tar.gz.

File metadata

File hashes

Hashes for maria_summarize_text_ai_assistant-0.1.4.tar.gz
Algorithm Hash digest
SHA256 288b8787ffa87e9efb6187c9ddc6fea75eedb46fcb7197c98adc1f6cfe960279
MD5 983a853d6d2be27ad55be4e7ad798aa7
BLAKE2b-256 ceefcae13d964b3c01909c6480fc33094032a640636484da9ee5ee842a9a04d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for maria_summarize_text_ai_assistant-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 76c2d0046d3468ec3cc423e35eee4b8498e414668d30073bd19f7317f060ac97
MD5 49e8a98583f2cd6305edb6eafbffc394
BLAKE2b-256 414e403c70ee3cb74640a60b0e7f4645c453c5f7ddcd7e384af51b208188cd46

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