Installation¶
Requirements¶
- Python 3.11 or higher
- pip or poetry package manager
Basic Installation¶
Install FlowEngine from PyPI:
This installs the core package with minimal dependencies:
pyyaml- YAML configuration parsingpydantic- Configuration validation
Optional Dependencies¶
HTTP Components¶
For the built-in HTTPComponent that makes HTTP requests:
This adds:
httpx- Modern HTTP client
Development¶
For development and testing:
This adds:
pytest- Testing frameworkpytest-cov- Coverage reportingpytest-asyncio- Async test supportmypy- Static type checkingruff- Fast Python lintertypes-PyYAML- Type stubs for PyYAML
All Optional Dependencies¶
Install everything:
Using Poetry¶
If you prefer Poetry:
With optional dependencies:
Development Setup¶
Clone the repository and install in development mode:
Verify the installation:
Verifying Installation¶
Test that FlowEngine is working:
from flowengine import (
BaseComponent,
FlowContext,
FlowEngine,
ConfigLoader,
)
# Create a simple component
class HelloComponent(BaseComponent):
def process(self, context: FlowContext) -> FlowContext:
context.set("greeting", "Hello, FlowEngine!")
return context
# Create a minimal config
config = ConfigLoader.from_dict({
"name": "Test Flow",
"version": "1.0",
"components": [
{"name": "hello", "type": "test.HelloComponent"}
],
"flow": {
"steps": [{"component": "hello"}]
}
})
# Run the flow
engine = FlowEngine(config, {"hello": HelloComponent("hello")})
result = engine.execute()
print(result.data.greeting) # "Hello, FlowEngine!"
Next Steps¶
- Quick Start - Build your first flow
- Components - Learn about component development
- API Reference - Explore the API