Text Parser Utils
A Python package designed to simplify user interactions by accepting free-text prompts and providing structured, reliable responses. It leverages an underlying pattern-matching system to interpret user inputs and generate consistent outputs, enabling seamless information extraction or task execution without complex processing of media types.
Installation
pip install text_parser_utils
Usage
Basic Usage
from text_parser_utils import text_parser_utils
response = text_parser_utils(user_input="Your input text here")
print(response)
Advanced Usage with Custom LLM
You can use any LLM compatible with LangChain by passing your own LLM instance.
Using OpenAI
from langchain_openai import ChatOpenAI
from text_parser_utils import text_parser_utils
llm = ChatOpenAI()
response = text_parser_utils(user_input="Your input text here", llm=llm)
print(response)
Using Anthropic
from langchain_anthropic import ChatAnthropic
from text_parser_utils import text_parser_utils
llm = ChatAnthropic()
response = text_parser_utils(user_input="Your input text here", llm=llm)
print(response)
Using Google
from langchain_google_genai import ChatGoogleGenerativeAI
from text_parser_utils import text_parser_utils
llm = ChatGoogleGenerativeAI()
response = text_parser_utils(user_input="Your input text here", llm=llm)
print(response)
Using LLM7 API Key
By default, the package uses the ChatLLM7 from langchain_llm7. If you want to use your own API key, you can pass it directly or via an environment variable.
Passing API Key Directly
from text_parser_utils import text_parser_utils
response = text_parser_utils(user_input="Your input text here", api_key="your_api_key")
print(response)
Using Environment Variable
export LLM7_API_KEY="your_api_key"
from text_parser_utils import text_parser_utils
response = text_parser_utils(user_input="Your input text here")
print(response)
Parameters
user_input(str): The user input text to process.llm(Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the defaultChatLLM7will be used.api_key(Optional[str]): The API key for LLM7. If not provided, the environment variableLLM7_API_KEYwill be used.
Rate Limits
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 obtain a free API key by registering at LLM7.
Issues
If you encounter any issues, please report them on the GitHub issues page.
Author
- Eugene Evstafev
- Email: hi@eugene.plus
- GitHub: chigwell
Metadata
Release files for text-parser-utils 2025.12.21085136
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| text_parser_utils-2025.12.21085136.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| text_parser_utils-2025.12.21085136-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / text_parser_utils-2025.12.21085136.tar.gz
| Download URL | text_parser_utils-2025.12.21085136.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df584f51f8d7206997a65fabf3e40d0f0baecf29806295b5734f89a2047faf83
|
|
BLAKE2b-256 checksum How to use checksums |
289a69d6338294e3821983a20c3dce852d972c6453498039c3ac59f97ff4b7fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / text_parser_utils-2025.12.21085136-py3-none-any.whl
| Download URL | text_parser_utils-2025.12.21085136-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66f1c155a6921c75d10f61b931fdfe8af90b053956febbc6c2c7e55671430422
|
|
BLAKE2b-256 checksum How to use checksums |
d71e0fa3a9417e915f1290cfe46ac71acaec4e12cc3102cebf0fdaa4ef28ec14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|