This module provides low-level protocol support for Apache Kafka as well as high-level consumer and producer classes. Request batching is supported by the protocol as well as broker-aware request routing. Gzip and Snappy compression is also supported for message sets.


On Freenode IRC at #kafka-python, as well as #apache-kafka

For general discussion of kafka-client design and implementation (not python specific), see https://groups.google.com/forum/m/#!forum/kafka-clients


The current stable version of this package is 0.9.3 and is compatible with:

Kafka broker versions

  • [offset management currently ZK only – does not support ConsumerCoordinator offset management APIs]
  • 0.8.1
  • 0.8.0

Python versions

  • 2.6 (tested on 2.6.9)
  • 2.7 (tested on 2.7.9)
  • 3.3 (tested on 3.3.5)
  • 3.4 (tested on 3.4.2)
  • pypy (tested on pypy 2.5.0 / python 2.7.8)


Copyright 2015, David Arthur under Apache License, v2.0. See LICENSE.

Indices and tables