Skip to main content

textblur_summary

PyPI version License: MIT Downloads LinkedIn

A Python package that extracts and structures key features and use cases from text descriptions of blurring tools, providing a clean, formatted summary without sensitive or technical details.


📌 Overview

textblur_summary processes user-provided text about a blurring tool (e.g., its purpose, benefits, and limitations) and returns a structured summary of its features. It highlights non-sensitive aspects like being free, instant, and watermark-free, while omitting technical or proprietary details.


🚀 Installation

Install via pip:

pip install textblur_summary

🔧 Usage

Basic Usage (Default LLM: ChatLLM7)

from textblur_summary import textblur_summary

# Example input: A user-provided description of a blurring tool
user_input = """
TextBlur is a free, instant image blurring tool. It allows users to blur faces or sensitive details in photos without watermarks.
"""

# Call the function (LLM7 API key is fetched from environment variable LLM7_API_KEY)
response = textblur_summary(user_input)
print(response)

Custom LLM Integration

You can pass your own LLM instance (e.g., OpenAI, Anthropic, or Google) for flexibility:

Using OpenAI:

from langchain_openai import ChatOpenAI
from textblur_summary import textblur_summary

llm = ChatOpenAI()
response = textblur_summary(user_input, llm=llm)
print(response)

Using Anthropic:

from langchain_anthropic import ChatAnthropic
from textblur_summary import textblur_summary

llm = ChatAnthropic()
response = textblur_summary(user_input, llm=llm)
print(response)

Using Google Generative AI:

from langchain_google_genai import ChatGoogleGenerativeAI
from textblur_summary import textblur_summary

llm = ChatGoogleGenerativeAI()
response = textblur_summary(user_input, llm=llm)
print(response)

🔑 API Key Configuration

  • Default LLM: Uses ChatLLM7 (from langchain_llm7) with the API key fetched from:
    • Environment variable: LLM7_API_KEY
    • Fallback: Hardcoded default (if no key is provided).
  • Custom API Key: Pass it directly:
    response = textblur_summary(user_input, api_key="your_llm7_api_key")
    
  • Get a Free API Key: Register at LLM7 Token.

📊 Function Parameters

Parameter Type Description
user_input str The text description of the blurring tool to analyze.
api_key Optional[str] LLM7 API key (optional if using environment variable).
llm Optional[BaseChatModel] Custom LLM instance (e.g., ChatOpenAI, ChatAnthropic). Defaults to ChatLLM7.

📝 Notes

  • Rate Limits: The default LLM7 free tier is sufficient for most use cases.
  • Output Format: Returns a list of structured key points (e.g., features, benefits).
  • Safety: Avoid sharing sensitive or proprietary details in user_input.

📢 Issues & Support

Report bugs or feature requests at: GitHub Issues


👤 Author


Metadata

Release files for textblur-summary 2025.12.21130742

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textblur-summary 2025.12.21130742
File Size Uploaded
textblur_summary-2025.12.21130742.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for textblur-summary 2025.12.21130742
File Interpreter ABI Platform
textblur_summary-2025.12.21130742-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / textblur_summary-2025.12.21130742.tar.gz

Download URL textblur_summary-2025.12.21130742.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d4c169281fe51417840c35e908122cfa264f3c31d26d066e8bbaced77083ce0f
BLAKE2b-256 checksum
How to use checksums
7fa65193303169a332648c58b4420355d6965ca4eb75cf25a0243467160c2e56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / textblur_summary-2025.12.21130742-py3-none-any.whl

Download URL textblur_summary-2025.12.21130742-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a85b1f4520a10b324ee10bfecc97b25670d5304a50af2811b29e7b2e1685350
BLAKE2b-256 checksum
How to use checksums
e6af84c509fa668a784b9362648edf034f498866f8740bfb0fbbc2858151d656
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.21130742 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page