Skip to main content

A simple AI-based text summarization helper using Google Gemini.

Project description

maria_summarize_text_ai_assistant

A simple Python library to summarize long text using OpenAI API.

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


Usage

import os from maria_summarize_text_ai_assistant import summarize_text

Set GEMINI_API_KEY in your environment

os.environ["GEMINI_API_KEY"] = "YOUR_GEMINI_API_KEY"

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


Next Steps:

  1. Replace your old summarize.py with the Gemini version above
  2. Update setup.py as shown and bump version (0.1.2)
  3. Rebuild package:
python setup.py sdist bdist_wheel

4. Upload to PyPI: python -m twine upload dist/*
5. In your Flask app, just set GEMINI_API_KEY as environment variable and your existing 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.2.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.2.tar.gz.

File metadata

File hashes

Hashes for maria_summarize_text_ai_assistant-0.1.2.tar.gz
Algorithm Hash digest
SHA256 49e51b73c06821fd9985125d9a8cc8122891634d3c2d890c86210667d976f344
MD5 e9f4fe2e560bbb587e12f87745aa753f
BLAKE2b-256 5e2f86eed435d9a37fcb55d1859970c451fd1afb18603fbaa6bf6aa7ef80166f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for maria_summarize_text_ai_assistant-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b07a6a06bd480edec98658e82a1bf9c99714db22f6d35ca450dceeae346df142
MD5 931256ba9a18078250c1f45f1b51e39e
BLAKE2b-256 fd6649e2820b1ec23218e7472565a755af2909df25ca61285df720bd81f3600e

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