qmetrics.net

Faust

Python asyncio stream processing for Kafka topics

Faust screenshot

Faust is a Python library for stream and event processing over Kafka, inspired by Kafka Streams. You write async agents and tables in plain Python without a separate DSL.

Overview

Faust ports Kafka Streams-style processing to Python using asyncio and type annotations. Workers consume partitioned Kafka topics through agents—async functions that handle each event—and can call other Python libraries such as NumPy, Pandas, Django, or Flask inside processors.

Distributed tables act like named key-value stores backed locally by RocksDB (or optionally Aerospike), with changelog topics for replication and failover. Tables support windowed aggregates with tumbling, hopping, and sliding time windows, and Record models describe how stream keys and values serialize.

The library targets high-throughput pipelines and emphasizes horizontal scaling, standby replicas, and recovery after node failure. Optional pip bundles add Redis caching, YAML codecs, Prometheus or Datadog monitoring, uvloop or eventlet integration, and debug tooling.

Kafka 0.10 or newer is required as the broker. Integrations exist for bridging blocking web frameworks via eventlet and for Tornado or Twisted through asyncio bridges.

Key features

  • Kafka topic agents in async Python
  • Distributed tables with RocksDB state
  • Windowed aggregations
  • Typed Record message models
  • Changelog replication and failover
  • Optional Prometheus and Datadog monitors
  • Pluggable Aerospike or Redis extras
  • Mypy-friendly static typing

Use cases

  • Real-time event pipelines on Kafka
  • Stateful stream processing in Python
  • Counted metrics sharded by partition key

Tags

Similar software

Timeplus

Single-binary streaming SQL engine for real-time data

Timeplus Proton is a C++ streaming SQL engine in one binary for stream processing, analytics, observability, and AI workloads. It connects to Kafka, databases, and object stores using SQL.

★ 2.3k⟳ 9 days agoApache-2.0

Socket.IO

Bidirectional real-time communication for web and Node

Socket.IO enables low-latency, event-based communication between clients and servers. It prefers WebSockets and falls back to HTTP long-polling when needed.

★ 63.3k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

★ 51.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon Redshift

pandas

Python data structures for labeled analysis

pandas is a Python package for working with labeled, tabular, and time-series data. It provides Series and DataFrame objects with alignment, grouping, and rich import and export options.

★ 50.7k⟳ yesterdayBSD-3-Clause

DuckDB

In-process analytical SQL database engine

DuckDB embeds in applications and the CLI to run fast OLAP SQL locally. It reads Parquet, CSV, JSON, remote object storage, and lakehouse formats without a separate database server.

★ 43.4k⟳ todayMIT

Polars

Rust analytical query engine for DataFrames

Polars is a DataFrame and SQL query engine written in Rust, exposed to Python, R, Node.js, and Rust. It emphasizes parallel, vectorized execution with lazy optimization and out-of-core streaming.

★ 40.5k⟳ todayMIT