Introduction to Wingfoil Python
mainWingfoil is a high-performance, scalable stream processing framework optimized for latency-critical applications like electronic trading and real-time AI. It uses a Directed Acyclic Graph (DAG) model to execute transformations over data streams.
Key characteristics:
- Engine: The core execution is handled by a high-performance Rust engine.
- Python Interface: The
wingfoilpackage provides Python bindings to the Rust engine, exposing the graph model, combinator surface, I/O adapters, and latency-tracing tools. - Extensibility: You can author custom operations (ops), sub-graphs, and adapters in Rust and then compose them within your Python workflows.
- Execution Modes: Supports both live data processing and deterministic historical replay.
import wingfoil as wf
g = wf.Graph()
out = g.counter(period_nanos=100).map(lambda n: n * 2)
g.run(cycles=3) # deterministic historical replay from t=0
assert out.value() == 6 # 3rd tick -> 3 * 2