Skip to main content

A new package that processes user-submitted text descriptions of images or videos containing watermarks and returns structured, watermark-free descriptions. It uses an LLM to reinterpret the content w

Project description

LuminaWeaver

PyPI version License: MIT Downloads LinkedIn

Clean, Watermark-Free Descriptions from User Input

LuminaWeaver is a Python package that processes user-submitted text descriptions of images or videos containing watermarks and returns structured, watermark-free descriptions. It uses a language model to reinterpret the content while removing any watermark references, ensuring the output is clean and ready for further applications like content creation or archival.


📦 Installation

Install the package via pip:

pip install luminaweaver

🚀 Usage

Basic Usage (Default LLM7)

from luminaweaver import luminaweaver

user_input = "This image shows a sunset over the mountains with a watermark in the bottom right corner."
response = luminaweaver(user_input)
print(response)

Custom LLM Integration

You can replace the default LLM (ChatLLM7) with any LangChain-compatible model. Below are examples using popular LLMs:

OpenAI

from langchain_openai import ChatOpenAI
from luminaweaver import luminaweaver

llm = ChatOpenAI()
response = luminaweaver(user_input, llm=llm)

Anthropic

from langchain_anthropic import ChatAnthropic
from luminaweaver import luminaweaver

llm = ChatAnthropic()
response = luminaweaver(user_input, llm=llm)

Google Generative AI

from langchain_google_genai import ChatGoogleGenerativeAI
from luminaweaver import luminaweaver

llm = ChatGoogleGenerativeAI()
response = luminaweaver(user_input, llm=llm)

🔧 Parameters

Parameter Type Description
user_input str The text description containing watermarks to process.
api_key Optional[str] Your LLM7 API key (if not using default).
llm Optional[BaseChatModel] Custom LangChain LLM instance (optional).

🔑 API Key & Rate Limits

  • Default LLM: Uses ChatLLM7 from langchain_llm7 (PyPI).
  • Free Tier: Sufficient for most use cases.
  • Custom API Key: Pass via api_key parameter or environment variable LLM7_API_KEY.
  • Get a Free Key: Register at LLM7 Token.

📝 How It Works

  1. Takes a user-provided text description (e.g., "Image of a cat with a watermark").
  2. Uses an LLM to reinterpret the description while removing watermark references.
  3. Returns a clean, structured output (e.g., "Image of a cat").

📦 Dependencies

  • langchain-core
  • langchain-llm7 (default)
  • re (built-in)

🔧 Development


📜 License

MIT License (see LICENSE).

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

luminaweaver-2025.12.21140209.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

luminaweaver-2025.12.21140209-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file luminaweaver-2025.12.21140209.tar.gz.

File metadata

  • Download URL: luminaweaver-2025.12.21140209.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for luminaweaver-2025.12.21140209.tar.gz
Algorithm Hash digest
SHA256 114dbfe0230e68eeb3993ddef67b74329b3dabccec8492968eb68c83c2be79c6
MD5 8cb015e50a1a0617d93db5de12c5f313
BLAKE2b-256 8afe7d7b6270aff04dd4aca40050acc02f69d2eea2c8cd4b2e4562b90fb47871

See more details on using hashes here.

File details

Details for the file luminaweaver-2025.12.21140209-py3-none-any.whl.

File metadata

File hashes

Hashes for luminaweaver-2025.12.21140209-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b3dda8d461623c64bbf000f8c7cd07af32c4d2ef535a8256fc3d2ec1ebebc7
MD5 f7435781725d97c0b789a860540f9336
BLAKE2b-256 bee91322ba3af1680e21f157900bc78415be7eb515a81b32d3219cf8fc98628c

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