A new package designed to facilitate structured, reliable interactions with language models for summarizing and analyzing user input text. It receives raw or pre-processed text data as input, applies
Project description
StructuredFlow Package
StructuredFlow is a Python library designed to facilitate structured, reliable interactions with language models for summarizing and analyzing user input text. It applies predefined patterns to extract key information or insights from raw or pre-processed text data, producing consistently formatted summaries or reports. This makes it ideal for workflows such as process documentation, content summarization, or data extraction, where accuracy and repeatability are essential.
Features
- Utilizes advanced language models for text analysis
- Applies regex patterns to extract structured data
- Ensures consistent output formatting
- Supports customization with user-provided LLM instances
Installation
Install the package via pip:
pip install StructuredFlow
Usage
Basic example
from StructuredFlow import StructuredFlow
# Example: Extract patterns from user input
results = StructuredFlow(user_input="Your text data here")
print(results)
Using the default LLM (ChatLLM7)
By default, StructuredFlow uses ChatLLM7 from langchain_llm7, available on PyPI:
from StructuredFlow import StructuredFlow
response = StructuredFlow(user_input="Your data here")
print(response)
Using a custom LLM instance
You can pass your own LLM instance, such as OpenAI, Anthropic, or Google models, by importing and initializing the respective classes:
# Example with OpenAI
from langchain_openai import ChatOpenAI
from StructuredFlow import StructuredFlow
llm = ChatOpenAI()
response = StructuredFlow(user_input="Your data here", llm=llm)
print(response)
# Example with Anthropic
from langchain_anthropic import ChatAnthropic
from StructuredFlow import StructuredFlow
llm = ChatAnthropic()
response = StructuredFlow(user_input="Your data here", llm=llm)
print(response)
# Example with Google Generative AI
from langchain_google_genai import ChatGoogleGenerativeAI
from StructuredFlow import StructuredFlow
llm = ChatGoogleGenerativeAI()
response = StructuredFlow(user_input="Your data here", llm=llm)
print(response)
Rate Limits and API Keys
The default rate limits for the LLM7 free tier are sufficient for most use cases. To access higher rate limits, you can obtain a free API key by registering at https://token.llm7.io/ and set it via:
- Environment variable:
LLM7_API_KEY - Or directly when calling the function:
response = StructuredFlow(user_input="Your data here", api_key="your_api_key")
Support and Contributions
For issues, feature requests, or contributions, please visit the GitHub repository: https://github.com/your-repo-link
Author
Eugene Evstafev
Email: hi@euegne.plus
Note: This package relies on the langchain_llm7 library available at PyPI. Ensure you have the necessary dependencies installed and configured.
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 structuredflow-2025.12.20173138.tar.gz.
File metadata
- Download URL: structuredflow-2025.12.20173138.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33d4e7f508840db01ba251b9ff4cb5732f02b9e7d99c15d4ae6608db139c5394
|
|
| MD5 |
07258e8caa463c2c7fb43306e5c0ad08
|
|
| BLAKE2b-256 |
22c7bb7e8a4674e9a13b6580900969d586104781f8e4fad5e7a4327de6aed1e0
|
File details
Details for the file structuredflow-2025.12.20173138-py3-none-any.whl.
File metadata
- Download URL: structuredflow-2025.12.20173138-py3-none-any.whl
- Upload date:
- Size: 4.7 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 |
894bbe5465b438167a80552a3150382ceb0dc3298b6263e5175b13cb206bd637
|
|
| MD5 |
e232bbaeed87e727e216d29120d3a8bd
|
|
| BLAKE2b-256 |
704d98909b51a2cef5911a521483fed04f2d2f3f2b8c416c103f94a789e7e521
|