promptxform
A simple and efficient way to process user input text with ChatLLM7
Overview
promptxform is 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 promptxform
Example usage
from promptxform import promptxform
response = promptxform(user_input="my text here")
Input parameters
user_input: str - the user input text to processllm: Optional[BaseChatModel] - the langchain llm instance to use, if not provided the default ChatLLM7 will be used.api_key: Optional[str] - the api key for llm7, if not provided it will use the default ChatLLM7 from langchain_llm7.
Using your own LLM instance
You can safely pass your own llm instance (based on langchain documentation) if you want to use another LLM, via passing it like promptxform(user_input, llm=your_llm_instance).
Here are some examples:
from langchain_openai import ChatOpenAI
from promptxform import promptxform
llm = ChatOpenAI()
response = promptxform(user_input, llm=llm)
from langchain_anthropic import ChatAnthropic
from promptxform import promptxform
llm = ChatAnthropic()
response = promptxform(user_input, llm=llm)
from langchain_google_genai import ChatGoogleGenerativeAI
from promptxform import promptxform
llm = ChatGoogleGenerativeAI()
response = promptxform(user_input, llm=llm)
Rate limits
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you want higher rate limits for LLM7 you can pass your api key via environment variable LLM7_API_KEY or via passing it directly like promptxform(user_input, api_key="your_api_key"). You can get a free api key by registering at https://token.llm7.io/
Support and issues
Please report any issues you encounter at github issues page
Author
Eugene Evstafev (eugene@eugene.plus) Alenaova Systems
Metadata
Release files for promptxform 2025.12.21085416
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| promptxform-2025.12.21085416.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| promptxform-2025.12.21085416-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / promptxform-2025.12.21085416.tar.gz
| Download URL | promptxform-2025.12.21085416.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50f25b4bc313d3f37c56768ebe1bccdb3c99959b3fd77850cd70710fcfcd0e47
|
|
BLAKE2b-256 checksum How to use checksums |
93cefe48ccd9eef2f67a4e70aa9cb3adebb37fdfd48d626a1088b1edd5fdee1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / promptxform-2025.12.21085416-py3-none-any.whl
| Download URL | promptxform-2025.12.21085416-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e19c06dfbde73f5d08a0e76b3daa723ed2d7feec3924d4394e935bcf2b7cb3d
|
|
BLAKE2b-256 checksum How to use checksums |
f087d0df870317d7e47780574ca4110806ce3fb1f0824c9fe68a105bbdff2080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|