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:
- Replace your old
summarize.pywith the Gemini version above - Update
setup.pyas shown and bump version (0.1.2) - 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
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.2.tar.gz.
File metadata
- Download URL: maria_summarize_text_ai_assistant-0.1.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49e51b73c06821fd9985125d9a8cc8122891634d3c2d890c86210667d976f344
|
|
| MD5 |
e9f4fe2e560bbb587e12f87745aa753f
|
|
| BLAKE2b-256 |
5e2f86eed435d9a37fcb55d1859970c451fd1afb18603fbaa6bf6aa7ef80166f
|
File details
Details for the file maria_summarize_text_ai_assistant-0.1.2-py3-none-any.whl.
File metadata
- Download URL: maria_summarize_text_ai_assistant-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.0 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 |
b07a6a06bd480edec98658e82a1bf9c99714db22f6d35ca450dceeae346df142
|
|
| MD5 |
931256ba9a18078250c1f45f1b51e39e
|
|
| BLAKE2b-256 |
fd6649e2820b1ec23218e7472565a755af2909df25ca61285df720bd81f3600e
|