LLMatch Struct Parser Package
LLMatch Struct Parser is a Python package designed to enhance structured text processing by leveraging the capabilities of llmatch-messages. It takes user-provided text as input and returns a well-organized, structured response using the power of llm7 and llmatch.
Overview
This package is particularly useful for applications that require reliable and structured data extraction from textual inputs, avoiding complex media processing like documents, audio, video, or URLs. It streamlines the process of obtaining structured data, making it easier to integrate into various applications and workflows.
Installation
pip install llmatch_struct_parser
Usage
from llmatch_struct_parser import llmatch_struct_parser
def process_text(user_input: str) -> List[str]:
response = llmatch_struct_parser(
user_input=user_input,
api_key="your_api_key",
llm="your_llm_instance"
)
return response
# Recommended usage
api_key = os.environ.get("LLM7_API_KEY")
llm = ChatLLM7(api_key=api_key)
response = llmatch_struct_parser(
user_input="your_input_text",
api_key=api_key,
llm=llm
)
print(response)
Parameters
user_input: the user input text to processllm: the langchain llm instance to use, if not provided the default ChatLLM7 will be usedapi_key: the api key for llm7, if not provided the default llm7 api key will be used
Using Custom LLM Instances
from langchain_openai import ChatOpenAI
from llmatch_struct_parser import llmatch_struct_parser
llm = ChatOpenAI()
response = llmatch_struct_parser(user_input="your_input_text", llm=llm)
from langchain_anthropic import ChatAnthropic
from llmatch_struct_parser import llmatch_struct_parser
llm = ChatAnthropic()
response = llmatch_struct_parser(user_input="your_input_text", llm=llm)
from langchain_google_genai import ChatGoogleGenerativeAI
from llmatch_struct_parser import llmatch_struct_parser
llm = ChatGoogleGenerativeAI()
response = llmatch_struct_parser(user_input="your_input_text", llm=llm)
Rate Limiting
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you need higher rate limits, you can pass your own api_key via environment variable LLM7_API_KEY or via passing it directly like llmatch_struct_parser(api_key="your_api_key").
Getting Started
Get your free LLM7 api key by registering at https://token.llm7.io/.
Support and Issues
Visit https://github.com/chigwell/llmatch-struct-parser for support and issue reporting.
License
This package is licensed under the MIT License.
Author
Eugene Evstafev, hi@euegne.plus
GitHub
Metadata
Release files for llmatch-struct-parser 2025.12.20201547
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llmatch_struct_parser-2025.12.20201547.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llmatch_struct_parser-2025.12.20201547-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / llmatch_struct_parser-2025.12.20201547.tar.gz
| Download URL | llmatch_struct_parser-2025.12.20201547.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93b70dd213c49be0fcbc1b5bb60ff5ae256d854483e242266fe7f38f0f1ac4a3
|
|
BLAKE2b-256 checksum How to use checksums |
f4423c4417196fba97f2373e3f6ff594d4611a91d02f9bff09292107cfa86a1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / llmatch_struct_parser-2025.12.20201547-py3-none-any.whl
| Download URL | llmatch_struct_parser-2025.12.20201547-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06a8f7ebe7c98840eaeed91a1f2dfb1b8989b4043026aa4c9972c8b4b1a36a40
|
|
BLAKE2b-256 checksum How to use checksums |
5fe757d35b61420bab07886c4180dfdc5df856aed556a832240a20bdfb19ebbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|