@@ -22,22 +22,11 @@ Python client for the Apache Kafka distributed stream processing system.
2222kafka-python is designed to function much like the official java client, with a
2323sprinkling of pythonic interfaces (e.g., consumer iterators).
2424
25- kafka-python is best used with newer brokers (0.9+), but is backwards-compatible with
26- older versions (to 0.8.0). Some features will only be enabled on newer brokers.
27- For example, fully coordinated consumer groups -- i.e., dynamic partition
28- assignment to multiple consumers in the same group -- requires use of 0.9+ kafka
29- brokers. Supporting this feature for earlier broker releases would require
30- writing and maintaining custom leadership election and membership / health
31- check code (perhaps using zookeeper or consul). For older brokers, you can
32- achieve something similar by manually assigning different partitions to each
33- consumer instance with config management tools like chef, ansible, etc. This
34- approach will work fine, though it does not support rebalancing on failures.
35- See https://kafka-python.readthedocs.io/en/master/compatibility.html
36- for more details.
37-
3825Please note that the master branch may contain unreleased features. For release
3926documentation, please see readthedocs and/or python's inline help.
4027
28+ New in 2.3 release: python -m kafka.* interfaces for quick scripts and testing.
29+
4130.. code-block :: bash
4231
4332 $ pip install kafka-python
@@ -188,6 +177,14 @@ for more details.
188177 metrics = producer.metrics()
189178
190179
180+ Module CLI Interface
181+ ********************
182+
183+ kafka-python also provides simple command-line interfaces for consumer, producer, and admin clients.
184+ Access via ``python -m kafka.consumer ``, ``python -m kafka.producer ``, and ``python -m kafka.admin ``.
185+ See https://kafka-python.readthedocs.io/en/master/usage.html for more details.
186+
187+
191188Thread safety
192189*************
193190
0 commit comments