# 🐍 Python client for Apache Kafka® - docs and examples

**URL:** <https://forum.confluent.io/t/python-client-for-apache-kafka-docs-and-examples/143>\
**Category:** Non-Java Clients\
**Created:** [17 November 2020 11:11 UTC](https://forum.confluent.io/t/python-client-for-apache-kafka-docs-and-examples/143 "2020-11-17T11:11:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rmoff/32/3_2.png) [@rmoff](https://forum.confluent.io/u/rmoff)\
**Post date:** [17 November 2020 11:11 UTC](https://forum.confluent.io/t/python-client-for-apache-kafka-docs-and-examples/143/1 "2020-11-17T11:11:50Z")

</div>

**[confluent-kafka-python](https://github.com/confluentinc/confluent-kafka-python)** provides a high-level Producer, Consumer and AdminClient compatible with all [Apache KafkaTM](http://kafka.apache.org/) brokers \>= v0.8, [Confluent Cloud](https://www.confluent.io/confluent-cloud/) and the [Confluent Platform](https://www.confluent.io/product/compare/). The client is:

- **Reliable** - It’s a wrapper around [librdkafka](https://github.com/edenhill/librdkafka) (provided automatically via binary wheels) which is widely deployed in a diverse set of production scenarios. It’s tested using [the same set of system tests](https://github.com/confluentinc/confluent-kafka-python/tree/master/confluent_kafka/kafkatest) as the Java client [and more](https://github.com/confluentinc/confluent-kafka-python/tree/master/tests). It’s supported by [Confluent](https://confluent.io/).
- **Performant** - Performance is a key design consideration. Maximum throughput is on par with the Java client for larger message sizes (where the overhead of the Python interpreter has less impact). Latency is on par with the Java client.
- **Future proof** - Confluent, founded by the original co-creators of Kafka, is building a [streaming platform](https://www.confluent.io/product/compare/) with Apache Kafka at its core. It’s high priority for us that client features keep pace with core Apache Kafka and components of the [Confluent Platform](https://www.confluent.io/product/compare/).

See the [API documentation](http://docs.confluent.io/current/clients/confluent-kafka-python/index.html) for more info.

* * *

💾 Code samples: [examples/clients/cloud/python at 6.0.0-post · confluentinc/examples · GitHub](https://github.com/confluentinc/examples/tree/6.0.0-post/clients/cloud/python)

---

<div class="post-metadata">

**Author:** ![rmoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rmoff/32/3_2.png) [@rmoff](https://forum.confluent.io/u/rmoff)\
**Post date:** [22 February 2021 15:22 UTC](https://forum.confluent.io/t/python-client-for-apache-kafka-docs-and-examples/143/2 "2021-02-22T15:22:06Z")

</div>

Split this topic on 22 February 2021 15:22 UTC

A post was split to a new topic: [Examples for python3 client on raspberry pi connecting to Confluent Cloud](https://forum.confluent.io/t/examples-for-python3-client-on-raspberry-pi-connecting-to-confluent-cloud/984)

---

<div class="post-metadata">

**Author:** ![rmoff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rmoff/32/3_2.png) [@rmoff](https://forum.confluent.io/u/rmoff)\
**Post date:** [22 February 2021 15:22 UTC](https://forum.confluent.io/t/python-client-for-apache-kafka-docs-and-examples/143/3 "2021-02-22T15:22:15Z")

</div>

Closed on 22 February 2021 15:22 UTC


