Skip to main content

A new package is designed to simplify user interactions by accepting free-text prompts and providing structured, reliable responses. It leverages an underlying pattern-matching system to interpret use

Project description

promptxform

PyPI version License: MIT Downloads LinkedIn

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 process
  • llm: 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptxform-2025.12.21085416.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptxform-2025.12.21085416-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file promptxform-2025.12.21085416.tar.gz.

File metadata

  • Download URL: promptxform-2025.12.21085416.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for promptxform-2025.12.21085416.tar.gz
Algorithm Hash digest
SHA256 50f25b4bc313d3f37c56768ebe1bccdb3c99959b3fd77850cd70710fcfcd0e47
MD5 3be753d855ecc2c550ad00e8ffeb7f59
BLAKE2b-256 93cefe48ccd9eef2f67a4e70aa9cb3adebb37fdfd48d626a1088b1edd5fdee1b

See more details on using hashes here.

File details

Details for the file promptxform-2025.12.21085416-py3-none-any.whl.

File metadata

File hashes

Hashes for promptxform-2025.12.21085416-py3-none-any.whl
Algorithm Hash digest
SHA256 4e19c06dfbde73f5d08a0e76b3daa723ed2d7feec3924d4394e935bcf2b7cb3d
MD5 b32c67559238c832b9674c1058958f1d
BLAKE2b-256 f087d0df870317d7e47780574ca4110806ce3fb1f0824c9fe68a105bbdff2080

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page