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.
Metadata
Release files for StructuredFlow 2025.12.20173138
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| structuredflow-2025.12.20173138.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| structuredflow-2025.12.20173138-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / structuredflow-2025.12.20173138.tar.gz
| Download URL | structuredflow-2025.12.20173138.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33d4e7f508840db01ba251b9ff4cb5732f02b9e7d99c15d4ae6608db139c5394
|
|
BLAKE2b-256 checksum How to use checksums |
22c7bb7e8a4674e9a13b6580900969d586104781f8e4fad5e7a4327de6aed1e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / structuredflow-2025.12.20173138-py3-none-any.whl
| Download URL | structuredflow-2025.12.20173138-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
894bbe5465b438167a80552a3150382ceb0dc3298b6263e5175b13cb206bd637
|
|
BLAKE2b-256 checksum How to use checksums |
704d98909b51a2cef5911a521483fed04f2d2f3f2b8c416c103f94a789e7e521
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|