Pathway Live Data Framework: Python Stream Processing
Pathway Live Data Framework is a Python framework for building streaming and batch data pipelines that run on a Rust engine underneath, not a Python wrapper bolted onto Kafka or Flink. Reach for it if you want one script that behaves the same in a notebook, a CI test, and a live stream. Skip it if your team needs a long-established, thoroughly documented ecosystem rather than a newer engine under a BSL license.
What is Pathway Live Data Framework?
Pathway Live Data Framework is a Python ETL framework whose pipelines are executed by a Rust engine built on differential dataflow, so the same code handles batch jobs, CI tests, and live streaming without a rewrite. It installs as a pip package, connects to sources like Kafka and PostgreSQL, and adds an LLM/RAG toolkit with an in-memory vector index for building pipelines over live documents.
Core Capabilities of Pathway Live Data Framework
- ✓A wide connector set out of the box: Kafka, Google Drive, PostgreSQL, and SharePoint are named directly, and an Airbyte connector reaches more than 300 additional data sources, per the README; you can also write your own Python connector.
- ✓Stateful transformations — joins, windowing, and sorting — run through operators implemented in Rust, and you can drop in any Python function or library alongside them.
- ✓Persistence for computation state, so a pipeline can restart after a crash or update instead of reprocessing everything from the start.
- ✓Time-aware consistency handling: results update automatically when late or out-of-order events arrive, rather than staying stale.
- ✓A Rust engine under the Python API does the multithreading, multiprocessing, and distributed computation, per the README.
- ✓An LLM extension with wrappers, parsers, embedders, and splitters, plus a vector index held in memory for live lookups, with integrations for LlamaIndex and LangChain.
- ✓A monitoring dashboard that tracks per-connector message counts and system latency and folds in log messages once a pipeline is running.
Pathway Live Data Framework Use Cases
- •Real-time ETL off a Kafka topic, using the same Python code you would otherwise run against a static file.
- •Event-driven pipelines with alerting, one of the README's own template categories.
- •Turning unstructured documents into a queryable structure on the fly, per one of the README's templates.
- •Building a private RAG pipeline over live documents with local models such as Ollama and Mistral AI, per the README's templates.
- •Multimodal RAG over live documents using a model like gpt-4o, per another of the README's example templates.
Getting Started with Pathway Live Data Framework
Install with pip: `pip install -U pathway`. Pathway Live Data Framework needs Python 3.10 or newer, and the README lists MacOS and Linux as supported platforms; on other systems it says to run it inside a virtual machine. The README also documents an official pathwaycom/pathway Docker image and a cookiecutter template for scaffolding a new project.
Building a Pipeline with Pathway
A minimal pipeline defines a schema with `pw.Schema`, reads rows through a connector such as `pw.io.csv.read`, applies operations like `.filter()` and `.reduce()` with a reducer such as `pw.reducers.sum`, writes results out with something like `pw.io.jsonlines.write`, and starts the computation with one `pw.run()` call. The README's own example computes a running sum of positive values from a folder of CSV files this way, and the same script structure applies whether that folder gets rows once or continuously. Locally, you run the file like any Python script, `python main.py`, or launch it with `pathway spawn python main.py`; add `--threads 3` to spread the work across threads. That's it.
Strengths
- ✓One codebase covers local dev, CI tests, batch runs, and live streaming — the README frames this as the same script running unmodified in each mode.
- ✓The heavy lifting runs in a Rust engine instead of pure Python, so joins, windowing, and sorting get compiled operators rather than an interpreted loop.
- ✓Connector coverage is wide out of the box: Kafka, PostgreSQL, Google Drive, SharePoint, and an Airbyte bridge to hundreds more sources, plus custom connectors.
- ✓The LLM/RAG tooling includes a real-time vector index kept in memory and ready integrations with LlamaIndex and LangChain, not just a generic wrapper.
- ✓The BSL 1.1 license explicitly permits unlimited non-commercial use and most commercial use for free, per the README, and each release converts to Apache 2.0 after 4 years.
Considerations for Pathway Live Data Framework
- △The license is BSL 1.1, not a standard OSS license. It's free for non-commercial use and most commercial use per the README, but it isn't Apache/MIT until each release converts 4 years later, so check the terms before building a commercial product on it.
- △Native platform support is MacOS and Linux; the README says other systems need to run it inside a virtual machine, with no native Windows path documented.
- △The stronger 'exactly once' consistency guarantee is reserved for the enterprise version — the free version documents 'at least once' only.
- △The README's performance claims point to a separate benchmarks repository rather than including the underlying numbers in the README itself.
- △Scaling across a Kubernetes cluster with persistence set up outside the process is positioned as an enterprise capability, not a documented self-serve path in the open-source package.
Comparing Pathway to Other Frameworks
Pathway Live Data Framework FAQs
Pathway Live Data Framework carries a BSL 1.1 license, which the README says allows unlimited non-commercial use and most commercial use for free, converting to Apache 2.0 four years after each release. Some companion repos, like examples and connectors, use the MIT license instead.
Pathway Live Data Framework supports MacOS and Linux natively, according to the README. On other operating systems, the README recommends running it inside a virtual machine rather than installing it directly.
Pathway Live Data Framework tracks time internally so results stay consistent as data arrives, updating output whenever late or out-of-order points come in. The README states the free version ships 'at least once' consistency, and the enterprise version adds 'exactly once.'
Pathway Live Data Framework includes an LLM extension with wrappers, parsers, embedders, and splitters, plus a vector index kept in memory for fast, live lookups, per the README. It also integrates with LlamaIndex and LangChain for building RAG pipelines over live documents.
Pathway Live Data Framework support runs through a Discord community, GitHub issues on the repository, and a direct contact email, all listed in the README's documentation and support section.
Pathway Live Data Framework runs a Rust engine under a Python API and unifies batch and streaming in one codebase, unlike JVM-based systems such as Flink and Spark. The README doesn't include independent benchmark data comparing the three, so treat performance claims as the project's own.
The problem it solves
Python data teams commonly end up maintaining two versions of the same logic: a pandas or SQL script for batch and historical runs, and a separate Kafka-consumer or JVM-based streaming job for the live version, with the two slowly drifting apart. Pathway Live Data Framework's README frames its reason for existing around collapsing that split, so one Python code path is meant to run unmodified across local development, CI tests, batch jobs, stream replays, and live data streams, with a Rust engine handling execution underneath.
Who should try it — and who should skip
Try Pathway Live Data Framework if you're a Python team building real-time ETL, an alerting pipeline, or a RAG system over live documents, and you don't want to hand-roll a second streaming implementation of logic you already wrote for batch. Skip it if your workload is a straightforward batch job a scheduler like airflow already covers, or if the BSL 1.1 license's commercial terms need more legal certainty than 'free for most commercial purposes' before you build on it.
Related repositories
Want a second opinion on pathway?
Ask an AI that can read this page — one click and you get its take on pathway.
