The scripts in this directory provide code examples using Confluent's Python client:
- adminapi.py: collection of Kafka Admin API operations
- avro-cli.py: produces Avro messages with Confluent Schema Registry and then reads them back again
- consumer.py: reads messages from a Kafka topic
- producer.py: reads lines from stdin and sends them to Kafka
- eos-transactions.py: transactional producer with exactly once semantics (EOS)
- avro_producer.py: SerializingProducer with AvroSerializer
- avro_consumer.py: DeserializingConsumer with AvroDeserializer
- json_producer.py: SerializingProducer with JsonSerializer
- json_consumer.py: DeserializingConsumer with JsonDeserializer
- protobuf_producer.py: SerializingProducer with ProtobufSerializer
- protobuf_consumer.py: DeserializingConsumer with ProtobufDeserializer
- sasl_producer.py: SerializingProducer with SASL Authentication
- list_offsets.py: List committed offsets and consumer lag for group and topics
Additional examples for Confluent Cloud:
- confluent_cloud.py: produces messages to Confluent Cloud and then reads them back again
- confluentinc/examples: integrates Confluent Cloud and Confluent Cloud Schema Registry