A new package that leverages pattern matching with language models to generate structured summaries or insights from user-submitted texts about topics like train maps or other transportation issues. I
Project description
transpatter
transpatter is a Python package that leverages pattern matching with language models to generate structured summaries or insights from user-submitted texts related to transportation topics, infrastructure issues, or system problems. It processes your input text and provides clear, formatted output highlighting key points, suggested improvements, or concise summaries. This tool is designed to assist users in quickly understanding complex textual descriptions without handling media files.
Installation
Install the package via pip:
pip install transpatter
Usage
Here's a basic example of how to use transpatter:
from transpatter import transpatter
user_input = "Describe the current issues with the train map system and suggestions for improvement."
response = transpatter(user_input)
print(response)
You can also pass your own language model instance. The default uses ChatLLM7 from langchain_llm7, but you are free to specify other models for more customization.
Examples of different LLM integrations:
Using OpenAI's GPT:
from langchain_openai import ChatOpenAI
from transpatter import transpatter
llm = ChatOpenAI()
response = transpatter(user_input, llm=llm)
Using Anthropic's Claude:
from langchain_anthropic import ChatAnthropic
from transpatter import transpatter
llm = ChatAnthropic()
response = transpatter(user_input, llm=llm)
Using Google's Generative AI:
from langchain_google_genai import ChatGoogleGenerativeAI
from transpatter import transpatter
llm = ChatGoogleGenerativeAI()
response = transpatter(user_input, llm=llm)
Configuration
- The default API key for
ChatLLM7can be set via the environment variableLLM7_API_KEY. - For higher rate limits or custom API keys, pass your key directly:
response = transpatter(user_input, api_key="your_api_key")
- Alternatively, provide your own language model instance for maximum flexibility:
response = transpatter(user_input, llm=your_custom_llm)
Notes
transpatteris built for flexibility; it useslangchain_llm7by default but can integrate with other LLM providers.- The package is ideal for generating structured summaries of complex transportation/system descriptions, aiding analysis and decision-making.
Support and Issues
- For issues or feature requests, please visit the GitHub issues page: https://github.com/yourusername/transpatter/issues
Author
- Eugene Evstafev
Email: hi@euegne.plus
GitHub: chigwell
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 transpatter-2025.12.21122704.tar.gz.
File metadata
- Download URL: transpatter-2025.12.21122704.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da412e5eedb1652371705e11e2dc81515f1be99005b4dc6f098cbc70e1971465
|
|
| MD5 |
f048f78bcd3b2775fabb0a90f9d93432
|
|
| BLAKE2b-256 |
19e6979bdd34c5f2b23759f74ad07e13c55d902489d732ba8d5a4669466f2a6c
|
File details
Details for the file transpatter-2025.12.21122704-py3-none-any.whl.
File metadata
- Download URL: transpatter-2025.12.21122704-py3-none-any.whl
- Upload date:
- Size: 4.6 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 |
ff38247dc9efd6ccd4c1ae727a331a9ce3afebfb16aa86688fb109ff6b5a2dd2
|
|
| MD5 |
ae333152b3fdcd39978a582ee949870f
|
|
| BLAKE2b-256 |
e391424a874838d04bc75e253e20335e218709f680089bece6a2e3afa19ba32d
|