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
  • Automatic .env file support for API key configuration

Installation

pip install maria_summarize_text_ai_assistant

The package automatically installs groq and python-dotenv dependencies.


Usage

Method 1: Using .env file (Recommended)

  1. Create a .env file in your project directory:
GROQ_API_KEY=your_actual_groq_api_key_here
  1. Use the library in your code:
from maria_summarize_text_ai_assistant import summarize_text

long_text = "Artificial intelligence is transforming industries..."
summary = summarize_text(long_text)
print(summary)

Method 2: Set environment variable manually

import os
from maria_summarize_text_ai_assistant import summarize_text

# Set your API key in environment
os.environ["GROQ_API_KEY"] = "YOUR_GROQ_API_KEY"

long_text = "Artificial intelligence is transforming industries..."
summary = summarize_text(long_text)
print(summary)

Publishing Updates

Update setup.py version number, then rebuild your package:

python setup.py sdist bdist_wheel

Upload to PyPI:

python -m twine upload dist/*

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.6.tar.gz (2.5 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.6.tar.gz.

File metadata

File hashes

Hashes for maria_summarize_text_ai_assistant-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4f36710c6b6327f31151326ebd6f1c67c8469eed7f12ef9285defca2b6d902b1
MD5 c510a298b2ed1d492af01ed9a28f9116
BLAKE2b-256 468bc2cc1e0c449b75408cbb22a14113b3a50b582bcfcab11d0012e6387865eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for maria_summarize_text_ai_assistant-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6be50163bd65c2c1b0b0ec4edb0ea751f8b857d4fa49aa10961888477252a72e
MD5 48edb139ab6847e6049824cf14d6b6f6
BLAKE2b-256 68383197ce855ec98b7a93830d523c247ac093c7da8114d759da98abfd0bde7c

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