Skip to main content

text2structured_summary

PyPI version License: MIT Downloads LinkedIn

Generate structured summaries from unstructured text using an LLM.

Installation

pip install text2structured_summary

Usage

from text2structured_summary import text2structured_summary

# Basic usage with default LLM7
response = text2structured_summary(
    user_input="Your unstructured text here..."
)

# With custom LLM (e.g., OpenAI)
from langchain_openai import ChatOpenAI
from text2structured_summary import text2structured_summary

llm = ChatOpenAI()
response = text2structured_summary(
    user_input="Your unstructured text...",
    llm=llm
)

# With custom API key (LLM7)
response = text2structured_summary(
    user_input="Your unstructured text...",
    api_key="your_llm7_api_key"
)

Parameters

  • user_input (str): The unstructured text to be summarized
  • api_key (Optional[str]): LLM7 API key (defaults to environment variable LLM7_API_KEY)
  • llm (Optional[BaseChatModel]): Custom LangChain LLM instance (defaults to ChatLLM7)

Features

  • Uses LLM7 by default (free tier sufficient for most use cases)
  • Supports custom LLMs via LangChain interface
  • Returns structured summaries matching predefined pattern
  • Automatic API key fallback from environment variables

Getting Started

  1. Install the package
  2. Call text2structured_summary() with your text
  3. Get structured output matching the package's pattern

Notes

  • For LLM7, register at https://token.llm7.io/ for your API key
  • The default pattern ensures structured output format
  • Custom LLMs must implement LangChain's BaseChatModel interface

Issues

Report issues at: https://github.com/chigwell/text2structured-summary/issues

Author

Eugene Evstafev (hi@euegne.plus)

Metadata

Release files for text2structured-summary 2025.12.21183445

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

Source distribution (sdist)

Source distribution for text2structured-summary 2025.12.21183445
File Size Uploaded Provenance Actions
text2structured_summary-2025.12.21183445.tar.gz 4.5 kB Without provenance Details for text2structured_summary-2025.12.21183445.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for text2structured-summary 2025.12.21183445
File Interpreter ABI Platform Actions
text2structured_summary-2025.12.21183445-py3-none-any.whl Python 3 none any Details for text2structured_summary-2025.12.21183445-py3-none-any.whl

Total release size: 9.7 kB

Release files / text2structured_summary-2025.12.21183445.tar.gz

Download URL text2structured_summary-2025.12.21183445.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cc51b233b563868ffde2580ab711ff436e45fa98b9fee9af0728792396c2669b
BLAKE2b-256 checksum
How to use checksums
e6093bc4cfad9d5cd6eeb94d5ca100c937b9193fbf657382015220d9ec2c0e49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / text2structured_summary-2025.12.21183445-py3-none-any.whl

Download URL text2structured_summary-2025.12.21183445-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03ed933fa49b25de54d5477335df35fea4fa4af7e04dee6ad7f585f48e7918c4
BLAKE2b-256 checksum
How to use checksums
858e7ddc98e918440b3f6c057da41fe1055984589822549a7ffd993a04056c98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Security for text2structured-summary 2025.12.21183445

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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