A new package designed to enhance structured text processing by leveraging the capabilities of llmatch-messages. This package will take user-provided text as input and return a well-organized, structu
Project description
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
Project details
Release history Release notifications | RSS feed
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 llmatch_struct_parser-2025.12.20201547.tar.gz.
File metadata
- Download URL: llmatch_struct_parser-2025.12.20201547.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93b70dd213c49be0fcbc1b5bb60ff5ae256d854483e242266fe7f38f0f1ac4a3
|
|
| MD5 |
40690b6a99983a123a8e3f24e38c257f
|
|
| BLAKE2b-256 |
f4423c4417196fba97f2373e3f6ff594d4611a91d02f9bff09292107cfa86a1d
|
File details
Details for the file llmatch_struct_parser-2025.12.20201547-py3-none-any.whl.
File metadata
- Download URL: llmatch_struct_parser-2025.12.20201547-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a8f7ebe7c98840eaeed91a1f2dfb1b8989b4043026aa4c9972c8b4b1a36a40
|
|
| MD5 |
12b167ef33cba8bdbabce892bfa33dbc
|
|
| BLAKE2b-256 |
5fe757d35b61420bab07886c4180dfdc5df856aed556a832240a20bdfb19ebbd
|