{
  "id": "task_libraries:kafka/python",
  "path": "/exapedia/python-kafka-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python kafka libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python Kafka libraries connect applications to Apache Kafka to publish messages to topics and consume them from partitions. A client either implements the Kafka protocol in Python or wraps librdkafka, the C client library. These libraries let backend services and data pipelines stream events between systems."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python kafka libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#confluent-kafka",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#kafka-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aiokafka",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#faststream",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#faust-streaming",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#quix-streams",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sentry-arroyo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pykafka",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#confluent-kafka",
          "label": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F127"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Native asyncio API",
            "librdkafka backend"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#confluent-kafka",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#kafka-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aiokafka",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#faststream",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#faust-streaming",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#quix-streams",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sentry-arroyo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pykafka",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "confluent-kafka",
          "name": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/confluentinc/confluent-kafka-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/confluent-kafka"
            },
            {
              "label": "Docs",
              "href": "https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/RasaHQ/rasa",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _publish(self, event: Dict[Text, Any]) -> None:\n    if self.partition_by_sender:\n        partition_key = bytes(event.get(\"sender_id\"), encoding=DEFAULT_ENCODING)\n    else:\n        partition_key = None\n\n    headers = []\n    if self.rasa_environment:\n        headers = [\n            (\n                \"RASA_ENVIRONMENT\",\n                bytes(self.rasa_environment, encoding=DEFAULT_ENCODING),\n            )\n        ]\n\n    reduced_event = rasa.shared.core.events.remove_parse_data(event)\n    structlogger.debug(\n        \"kafka.publish.event\",\n        event_info=\"Logging a reduced version of the Kafka event\",\n        topic=self.topic,\n        rasa_event=reduced_event,\n        partition_key=partition_key,\n        headers=headers,\n    )\n\n    serialized_event = json.dumps(event).encode(DEFAULT_ENCODING)\n\n    if self.producer is not None:\n        self.producer.produce(\n            self.topic,\n            value=serialized_event,\n            key=partition_key,\n            headers=headers,\n            on_delivery=delivery_report,\n        )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/RasaHQ/rasa/blob/c4069568b4fe2adb5d5a1e55d17ce8cb9dda27fc/rasa/core/brokers/kafka.py#L231-L265",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20confluent-kafka%20for%20Kafka%20offset%20commits%2C%20partition%20reassignment%2C%20batch%20publishing%20and%20event-delivery%20callbacks&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import asyncio\nfrom confluent_kafka.aio import AIOProducer\n\nasync def main():\n    p = AIOProducer({\"bootstrap.servers\": \"mybroker\"})\n    try:\n        # produce() returns a Future; first await the coroutine to get the Future,\n        # then await the Future to get the delivered Message.\n        delivery_future = await p.produce(\"mytopic\", value=b\"hello\")\n        delivered_msg = await delivery_future\n        # Optionally flush any remaining buffered messages before shutdown\n        await p.flush()\n    finally:\n        await p.close()\n\nasyncio.run(main())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/confluentinc/confluent-kafka-python/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "kafka-python",
          "name": [
            {
              "t": "fact",
              "fact": "F144"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/dpkp/kafka-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/kafka-python"
            },
            {
              "label": "Docs",
              "href": "https://kafka-python.readthedocs.io/en/master/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://kafka-python.readthedocs.io/en/master/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/YelpArchive/kafka-utils",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def remove_partition_from_consumer(self, partition):\n    deleted = self.active_partitions.pop(partition)\n    # Terminate if there are no more partitions to consume\n    if not self.active_partitions:\n        self.log.info(\"Completed reading from all partitions\")\n        self._finished = True\n        return\n    # Reassign the remaining partitions to the consumer while saving the\n    # position\n    positions = [\n        (p, self.consumer.position(p))\n        for p in self.active_partitions.values()\n    ]\n    self.consumer.assign(list(self.active_partitions.values()))\n    for topic_partition, position in positions:\n        self.consumer.seek(topic_partition, position)\n    self.log.info(\n        \"Completed reading from %s. Remaining partitions: %s\",\n        deleted,\n        self.active_partitions,\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/YelpArchive/kafka-utils/blob/def433ec4d07c60290d5dc937d3b4e5189eca9dc/kafka_utils/kafka_consumer_manager/util.py#L374-L394",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20kafka-python%20for%20Kafka%20offset%20commits%2C%20partition%20reassignment%2C%20batch%20publishing%20and%20event-delivery%20callbacks&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "# Serialize json messages\nfrom kafka import KafkaProducer, JsonSerializer\nproducer = KafkaProducer(value_serializer=JsonSerializer())\nproducer.send('fizzbuzz', {'foo': 'bar'})\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/dpkp/kafka-python/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "example.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "aiokafka",
          "name": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aio-libs/aiokafka"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/aiokafka"
            },
            {
              "label": "Docs",
              "href": "https://aiokafka.readthedocs.io/en/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F63"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://aiokafka.readthedocs.io/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ag2ai/faststream",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@override\nasync def publish_batch(\n    self,\n    cmd: \"KafkaPublishCommand\",\n) -> Union[\"asyncio.Future[RecordMetadata]\", \"RecordMetadata\"]:\n    \"\"\"Publish a batch of messages to a topic.\"\"\"\n    batch = self._producer.producer.create_batch()\n\n    headers_to_send = cmd.headers_to_publish()\n\n    if isinstance(self.codec, BatchCodecProto):\n        encoded_batch = await self.codec.encode_batch(\n            cmd.batch_bodies, self.serializer\n        )\n    else:\n        encoded_batch = [\n            await self.codec.encode(body, self.serializer)\n            for body in cmd.batch_bodies\n        ]\n\n    for message_position, (message, content_type) in enumerate(encoded_batch):\n        if content_type:\n            final_headers = {\n                \"content-type\": content_type,\n                **headers_to_send,\n            }\n        else:\n            final_headers = headers_to_send.copy()\n\n        metadata = batch.append(\n            key=cmd.key_for(message_position),\n            value=message,\n            timestamp=cmd.timestamp_ms,\n            headers=encode_headers(final_headers),\n        )\n        if metadata is None:\n            raise BatchBufferOverflowException(message_position=message_position)\n\n    send_future = await self._producer.producer.send_batch(\n        batch,\n        cmd.destination,\n        partition=cmd.partition,\n    )\n    if not cmd.no_confirm:\n        return await send_future\n    return send_future\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ag2ai/faststream/blob/aa3d3c82410de58b8f32c5f39b0f42a98fd2d0a5/faststream/kafka/publisher/producer.py#L150-L195",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20aiokafka%20for%20Kafka%20offset%20commits%2C%20partition%20reassignment%2C%20batch%20publishing%20and%20event-delivery%20callbacks&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from aiokafka import AIOKafkaProducer\nimport asyncio\n\nasync def send_one():\n    producer = AIOKafkaProducer(bootstrap_servers='localhost:9092')\n    # Get cluster layout and initial topic/partition leadership information\n    await producer.start()\n    try:\n        # Produce message\n        await producer.send_and_wait(\"my_topic\", b\"Super message\")\n    finally:\n        # Wait for all pending messages to be delivered or expire.\n        await producer.stop()\n\nasyncio.run(send_one())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/aio-libs/aiokafka/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "faststream",
          "name": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ag2ai/faststream"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/faststream"
            },
            {
              "label": "Docs",
              "href": "https://faststream.ag2.ai/latest/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://faststream.ag2.ai/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from faststream import FastStream\nfrom faststream.kafka import KafkaBroker\n# from faststream.confluent import KafkaBroker\n# from faststream.rabbit import RabbitBroker\n# from faststream.nats import NatsBroker\n# from faststream.redis import RedisBroker\n# from faststream.mqtt import MQTTBroker\n\nbroker = KafkaBroker(\"localhost:9092\")\n# broker = RabbitBroker(\"amqp://guest:guest@localhost:5672/\")\n# broker = NatsBroker(\"nats://localhost:4222/\")\n# broker = RedisBroker(\"redis://localhost:6379/\")\n# broker = MQTTBroker(\"localhost\")\n\napp = FastStream(broker)\n\n@broker.subscriber(\"in\")\n@broker.publisher(\"out\")\nasync def handle_msg(user: str, user_id: int) -> str:\n    return f\"User: {user_id} - {user} registered\"\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/ag2ai/faststream/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=faststream%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "faust-streaming",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/faust-streaming/faust"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/faust-streaming"
            },
            {
              "label": "Docs",
              "href": "https://faust-streaming.github.io/faust/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://faust-streaming.github.io/faust/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import faust\n\napp = faust.App(\n    'hello-world',\n    broker='kafka://localhost:9092',\n    value_serializer='raw',\n)\n\ngreetings_topic = app.topic('greetings')\n\n@app.agent(greetings_topic)\nasync def greet(greetings):\n    async for greeting in greetings:\n        print(greeting)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://faust-streaming.github.io/faust/playbooks/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "hello_world.py"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=faust-streaming%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "quix-streams",
          "name": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/quixio/quix-streams"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/quixstreams"
            },
            {
              "label": "Docs",
              "href": "https://quix.io/docs/quix-streams/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F88"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://quix.io/docs/quix-streams/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from quixstreams import Application\n\napp = Application(broker_address=\"localhost:9092\")\ntopic = app.topic(\"input\")\n\nwith app.get_producer() as producer:\n    producer.produce(topic=topic.name, key=b\"key\", value=b\"value\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/quixio/quix-streams/blob/c1b0d4550ea31ec8284b119a9c241cecdaacefc5/quixstreams/app.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20quixstreams%20for%20Kafka%20offset%20commits%2C%20partition%20reassignment%2C%20batch%20publishing%20and%20event-delivery%20callbacks&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sentry-arroyo",
          "name": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/getsentry/arroyo"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/sentry-arroyo"
            },
            {
              "label": "Docs",
              "href": "https://getsentry.github.io/arroyo/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F233"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://getsentry.github.io/arroyo/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from arroyo.backends.kafka.configuration import (\n    build_kafka_consumer_configuration,\n)\nfrom arroyo.backends.kafka.consumer import KafkaConsumer\nfrom arroyo.types import Topic\n\nTOPIC = Topic(\"source-topic\")\n\nconsumer = KafkaConsumer(\n    build_kafka_consumer_configuration(\n        default_config={},\n        bootstrap_servers=[\"127.0.0.1:9092\"],\n        auto_offset_reset=\"latest\",\n        group_id=\"test-group\",\n    )\n)\n\nconsumer.subscribe([TOPIC])\n\nwhile True:\n    msg = consumer.poll(timeout=1.0)\n    if msg is not None:\n        print(f\"MSG: {msg.payload}\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://getsentry.github.io/arroyo/getstarted.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "getstarted.rst"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sentry-arroyo%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pykafka",
          "name": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Parsely/pykafka"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pykafka"
            },
            {
              "label": "Docs",
              "href": "https://pykafka.readthedocs.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F248"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pykafka.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F241"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pykafka import KafkaClient\nclient = KafkaClient(hosts=\"127.0.0.1:9092,127.0.0.1:9093,...\")\n\nclient.topics\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/Parsely/pykafka/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pykafka%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F241"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F246"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python Kafka library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#confluent-kafka",
          "label": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits most production services, with producer, consumer, and administration APIs backed by librdkafka. "
        },
        {
          "t": "link",
          "href": "#aiokafka",
          "label": [
            {
              "t": "text",
              "text": "aiokafka"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits asyncio applications. "
        },
        {
          "t": "link",
          "href": "#kafka-python",
          "label": [
            {
              "t": "text",
              "text": "kafka-python"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits environments that need a pure Python client."
        }
      ]
    },
    {
      "q": "What is the Confluent Kafka Python client?",
      "a": [
        {
          "t": "link",
          "href": "#confluent-kafka",
          "label": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a Python client for Kafka with producer, consumer, and administration APIs backed by librdkafka. Its AIOProducer offers awaitable calls for asyncio code."
        }
      ]
    },
    {
      "q": "What is FastStream?",
      "a": [
        {
          "t": "link",
          "href": "#faststream",
          "label": [
            {
              "t": "text",
              "text": "FastStream"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a typed Python client for Kafka, RabbitMQ, NATS, Redis, and MQTT with awaitable publishing and subscription handlers. Its default Kafka module runs on aiokafka."
        }
      ]
    },
    {
      "q": "What is kafka-python?",
      "a": [
        {
          "t": "link",
          "href": "#kafka-python",
          "label": [
            {
              "t": "text",
              "text": "kafka-python"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a Kafka client written in pure Python with producer, consumer, and administration APIs. Its public API is synchronous and blocking."
        }
      ]
    },
    {
      "q": "How do I consume Kafka messages in Python?",
      "a": [
        {
          "t": "text",
          "text": "A consumer subscribes to topics and polls for messages in a loop. "
        },
        {
          "t": "link",
          "href": "#confluent-kafka",
          "label": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#kafka-python",
          "label": [
            {
              "t": "text",
              "text": "kafka-python"
            }
          ]
        },
        {
          "t": "text",
          "text": " offer blocking consumers. "
        },
        {
          "t": "link",
          "href": "#aiokafka",
          "label": [
            {
              "t": "text",
              "text": "aiokafka"
            }
          ]
        },
        {
          "t": "text",
          "text": " offers the same pattern as an asyncio consumer."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, confluent-kafka",
      "display": "confluent-kafka",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, confluent-kafka",
      "display": "45.1M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, confluent-kafka",
      "display": "Apache",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, confluent-kafka",
      "display": "2.16.1, Oct 2026",
      "asOf": "2026-10-28"
    },
    "F5": {
      "label": "Package release date, confluent-kafka",
      "display": "Oct 2026",
      "asOf": "2026-10-28"
    },
    "F6": {
      "label": "Repository stars, confluent-kafka",
      "display": "528",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Producer API, confluent-kafka",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Consumer groups, confluent-kafka",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Asyncio API, confluent-kafka",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Transactions, confluent-kafka",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, confluent-kafka",
      "display": "pip install confluent-kafka",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, confluent-kafka",
      "display": "Provides Kafka producer, consumer, and administration APIs backed by librdkafka.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, confluent-kafka",
      "display": "Provides an asyncio producer",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, confluent-kafka",
      "display": "Use the asynchronous producer inside applications with an asyncio event loop.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, confluent-kafka",
      "display": "Supports transactional Kafka workflows",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, confluent-kafka",
      "display": "Use the client transaction APIs for atomic Kafka processing.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, confluent-kafka",
      "display": "Async batching omits message headers",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, confluent-kafka",
      "display": "Use synchronous produce when each message needs headers.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, confluent-kafka",
      "display": "Delivery callbacks need polling",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, confluent-kafka",
      "display": "Poll the synchronous producer to run queued delivery callbacks.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, confluent-kafka",
      "display": "import asyncio\nfrom confluent_kafka.aio import AIOProducer\n\nasync def main():\n    p = AIOProducer({\"bootstrap.servers\": \"mybroker\"})\n    try:\n        # produce() returns a Future; first await the coroutine to get the Future,\n        # then await the Future to get the delivered Message.\n        delivery_future = await p.produce(\"mytopic\", value=b\"hello\")\n        delivered_msg = await delivery_future\n        # Optionally flush any remaining buffered messages before shutdown\n        await p.flush()\n    finally:\n        await p.close()\n\nasyncio.run(main())\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, confluent-kafka",
      "display": "def _publish(self, event: Dict[Text, Any]) -> None:\n    if self.partition_by_sender:\n        partition_key = bytes(event.get(\"sender_id\"), encoding=DEFAULT_ENCODING)\n    else:\n        partition_key = None\n\n    headers = []\n    if self.rasa_environment:\n        headers = [\n            (\n                \"RASA_ENVIRONMENT\",\n                bytes(self.rasa_environment, encoding=DEFAULT_ENCODING),\n            )\n        ]\n\n    reduced_event = rasa.shared.core.events.remove_parse_data(event)\n    structlogger.debug(\n        \"kafka.publish.event\",\n        event_info=\"Logging a reduced version of the Kafka event\",\n        topic=self.topic,\n        rasa_event=reduced_event,\n        partition_key=partition_key,\n        headers=headers,\n    )\n\n    serialized_event = json.dumps(event).encode(DEFAULT_ENCODING)\n\n    if self.producer is not None:\n        self.producer.produce(\n            self.topic,\n            value=serialized_event,\n            key=partition_key,\n            headers=headers,\n            on_delivery=delivery_report,\n        )\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, confluent-kafka",
      "display": "kafka.py · _publish()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, confluent-kafka",
      "display": "RasaHQ/rasa",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, RasaHQ/rasa",
      "display": "21.4K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, RasaHQ/rasa",
      "display": "Jul 2026",
      "asOf": "2026-07-24"
    },
    "F27": {
      "label": "Library name, kafka-python",
      "display": "kafka-python",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, kafka-python",
      "display": "17.9M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, kafka-python",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, kafka-python",
      "display": "3.0.13, Nov 2026",
      "asOf": "2026-11-06"
    },
    "F31": {
      "label": "Package release date, kafka-python",
      "display": "Nov 2026",
      "asOf": "2026-11-06"
    },
    "F32": {
      "label": "Repository stars, kafka-python",
      "display": "5.9K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Producer API, kafka-python",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Consumer groups, kafka-python",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Transactions, kafka-python",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, kafka-python",
      "display": "pip install kafka-python",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, kafka-python",
      "display": "Provides pure-Python Kafka producer, consumer, and administration clients.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, kafka-python",
      "display": "Installs without a native core",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, kafka-python",
      "display": "Use producer, consumer, and admin clients without a compiled client dependency.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, kafka-python",
      "display": "Supports transactional message publishing",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, kafka-python",
      "display": "Commit or abort the messages sent within a producer transaction.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, kafka-python",
      "display": "Consumers belong to one thread",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, kafka-python",
      "display": "Keep each consumer instance within its own thread.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, kafka-python",
      "display": "Waiting for delivery blocks",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, kafka-python",
      "display": "Keep blocking future waits outside an application event loop.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, kafka-python",
      "display": "#!/usr/bin/env python\nimport threading\nimport time\n\nfrom kafka import KafkaAdminClient, KafkaConsumer, KafkaProducer\nfrom kafka.admin import NewTopic\n\n\nclass Producer(threading.Thread):\n    def __init__(self):\n        threading.Thread.__init__(self)\n        self.stop_event = threading.Event()\n\n    def stop(self):\n        self.stop_event.set()\n\n    def run(self):\n        producer = KafkaProducer(bootstrap_servers='localhost:9092')\n\n        while not self.stop_event.is_set():\n            producer.send('my-topic', b\"test\")\n            producer.send('my-topic', b\"\\xc2Hola, mundo!\")\n            time.sleep(1)\n\n        producer.close()\n\n\nclass Consumer(threading.Thread):\n    def __init__(self):\n        threading.Thread.__init__(self)\n        self.stop_event = threading.Event()\n\n    def stop(self):\n        self.stop_event.set()\n\n    def run(self):\n        consumer = KafkaConsumer(bootstrap_servers='localhost:9092',\n                                 auto_offset_reset='earliest',\n                                 consumer_timeout_ms=1000)\n        consumer.subscribe(['my-topic'])\n\n        while not self.stop_event.is_set():\n            for message in consumer:\n                print(message)\n                if self.stop_event.is_set():\n                    break\n\n        consumer.close()\n\n\ndef main():\n    # Create 'my-topic' Kafka topic\n    try:\n        admin = KafkaAdminClient(bootstrap_servers='localhost:9092')\n\n        topic = NewTopic(name='my-topic',\n                         num_partitions=1,\n                         replication_factor=1)\n        admin.create_topics([topic])\n    except Exception:\n        pass\n\n    tasks = [\n        Producer(),\n        Consumer()\n    ]\n\n    # Start threads of a publisher/producer and a subscriber/consumer to 'my-topic' Kafka topic\n    for t in tasks:\n        t.start()\n\n    time.sleep(10)\n\n    # Stop threads\n    for task in tasks:\n        task.stop()\n\n    for task in tasks:\n        task.join()\n\n\nif __name__ == \"__main__\":\n    main()\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, kafka-python",
      "display": "def consumer_commit_for_times(consumer, partition_to_offset, atomic=False):\n    # ...\n    no_offsets = set()\n    for tp, offset in partition_to_offset.items():\n        if offset is None:\n            logging.error(\n                \"No offsets found for topic-partition {tp}. Either timestamps not supported\"\n                \" for the topic {tp}, or no offsets found after timestamp specified, or there is no\"\n                \" data in the topic-partition.\".format(tp=tp),\n            )\n            no_offsets.add(tp)\n    if atomic and len(no_offsets) > 0:\n        logging.error(\n            \"Commit aborted; offsets were not found for timestamps in\"\n            \" topics {}\".format(\",\".join([str(tp) for tp in no_offsets])),\n        )\n        return\n\n    offsets_metadata = {\n        tp: OffsetAndMetadata(partition_to_offset[tp].offset, metadata=None)\n        for tp in partition_to_offset.keys() if tp not in no_offsets\n    }\n\n    if len(offsets_metadata) != 0:\n        consumer.commit(offsets_metadata)\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, kafka-python",
      "display": "util.py · consumer_commit_for_times()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, kafka-python",
      "display": "YelpArchive/kafka-utils",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, YelpArchive/kafka-utils",
      "display": "316",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, YelpArchive/kafka-utils",
      "display": "Aug 2023",
      "asOf": "2023-08-24"
    },
    "F52": {
      "label": "Library name, aiokafka",
      "display": "aiokafka",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, aiokafka",
      "display": "14.2M",
      "asOf": "2026-11-16"
    },
    "F54": {
      "label": "License, aiokafka",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, aiokafka",
      "display": "0.15.0, Oct 2026",
      "asOf": "2026-10-28"
    },
    "F56": {
      "label": "Package release date, aiokafka",
      "display": "Oct 2026",
      "asOf": "2026-10-28"
    },
    "F57": {
      "label": "Repository stars, aiokafka",
      "display": "1.4K",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Producer API, aiokafka",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Consumer groups, aiokafka",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Asyncio API, aiokafka",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Transactions, aiokafka",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Install, aiokafka",
      "display": "pip install aiokafka",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "What it does, aiokafka",
      "display": "Provides asyncio producer and consumer APIs for Apache Kafka.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, aiokafka",
      "display": "Fits async producer lifecycles",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, aiokafka",
      "display": "Await producer startup, delivery, and shutdown from the application event loop.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, aiokafka",
      "display": "Coordinates consumer groups",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, aiokafka",
      "display": "Distribute topic partitions among consumers in the same group.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, aiokafka",
      "display": "Producer memory limit needs handling",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, aiokafka",
      "display": "Manage total buffered data outside the missing buffer.memory setting.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, aiokafka",
      "display": "Send timeouts need explicit wrapping",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, aiokafka",
      "display": "Wrap producer.send with asyncio.wait_for when a bounded wait is required.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Quickstart, aiokafka",
      "display": "from aiokafka import AIOKafkaProducer\nimport asyncio\n\nasync def send_one():\n    producer = AIOKafkaProducer(\n        bootstrap_servers='localhost:9092')\n    # Get cluster layout and initial topic/partition leadership information\n    await producer.start()\n    try:\n        # Produce message\n        await producer.send_and_wait(\"my_topic\", b\"Super message\")\n    finally:\n        # Wait for all pending messages to be delivered or expire.\n        await producer.stop()\n\nasyncio.run(send_one())\n\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function, aiokafka",
      "display": "@override\nasync def publish_batch(\n    self,\n    cmd: \"KafkaPublishCommand\",\n) -> Union[\"asyncio.Future[RecordMetadata]\", \"RecordMetadata\"]:\n    \"\"\"Publish a batch of messages to a topic.\"\"\"\n    batch = self._producer.producer.create_batch()\n\n    headers_to_send = cmd.headers_to_publish()\n\n    if isinstance(self.codec, BatchCodecProto):\n        encoded_batch = await self.codec.encode_batch(\n            cmd.batch_bodies, self.serializer\n        )\n    else:\n        encoded_batch = [\n            await self.codec.encode(body, self.serializer)\n            for body in cmd.batch_bodies\n        ]\n\n    for message_position, (message, content_type) in enumerate(encoded_batch):\n        if content_type:\n            final_headers = {\n                \"content-type\": content_type,\n                **headers_to_send,\n            }\n        else:\n            final_headers = headers_to_send.copy()\n\n        metadata = batch.append(\n            key=cmd.key_for(message_position),\n            value=message,\n            timestamp=cmd.timestamp_ms,\n            headers=encode_headers(final_headers),\n        )\n        if metadata is None:\n            raise BatchBufferOverflowException(message_position=message_position)\n\n    send_future = await self._producer.producer.send_batch(\n        batch,\n        cmd.destination,\n        partition=cmd.partition,\n    )\n    if not cmd.no_confirm:\n        return await send_future\n    return send_future\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function reference, aiokafka",
      "display": "producer.py · publish_batch()",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project repository, aiokafka",
      "display": "ag2ai/faststream",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project stars, ag2ai/faststream",
      "display": "5.4K",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project push date, ag2ai/faststream",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F78": {
      "label": "Library name, quixstreams",
      "display": "Quix Streams",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Monthly downloads, quixstreams",
      "display": "80.1K",
      "asOf": "2026-11-16"
    },
    "F80": {
      "label": "License, quixstreams",
      "display": "Apache",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Package release, quixstreams",
      "display": "3.28.1, Oct 2026",
      "asOf": "2026-10-15"
    },
    "F82": {
      "label": "Package release date, quixstreams",
      "display": "Oct 2026",
      "asOf": "2026-10-15"
    },
    "F83": {
      "label": "Repository stars, quixstreams",
      "display": "1.6K",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Producer API, quixstreams",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Consumer groups, quixstreams",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Transactions, quixstreams",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, quixstreams",
      "display": "pip install quixstreams",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, quixstreams",
      "display": "Builds stateful stream-processing pipelines and Kafka producer-consumer applications in Python.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, quixstreams",
      "display": "Builds streaming dataframe pipelines",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, quixstreams",
      "display": "Transform, filter, and publish Kafka messages through dataframe operations.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, quixstreams",
      "display": "Persists state across application restarts",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, quixstreams",
      "display": "Keep keyed application state locally with Kafka changelog backups.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, quixstreams",
      "display": "State stays scoped by key",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, quixstreams",
      "display": "Read or update keyed state only while processing that same message key.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, quixstreams",
      "display": "Exactly-once processing needs configuration",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, quixstreams",
      "display": "Select exactly-once explicitly when the default at-least-once behavior does not fit.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, quixstreams",
      "display": "from quixstreams import Application\n\n# A minimal application reading temperature data in Celsius from the Kafka topic,\n# converting it to Fahrenheit and producing alerts to another topic.\n\n# Define an application that will connect to Kafka\napp = Application(\n    broker_address=\"localhost:9092\",  # Kafka broker address\n)\n\n# Define the Kafka topics\ntemperature_topic = app.topic(\"temperature-celsius\", value_deserializer=\"json\")\nalerts_topic = app.topic(\"temperature-alerts\", value_serializer=\"json\")\n\n# Create a Streaming DataFrame connected to the input Kafka topic\nsdf = app.dataframe(topic=temperature_topic)\n\n# Convert temperature to Fahrenheit by transforming the input message (with an anonymous or user-defined function)\nsdf = sdf.apply(lambda value: {\"temperature_F\": (value[\"temperature\"] * 9/5) + 32})\n\n# Filter values above the threshold\nsdf = sdf[sdf[\"temperature_F\"] > 150]\n\n# Produce alerts to the output topic\nsdf = sdf.to_topic(alerts_topic)\n\n# Run the streaming application (app automatically tracks the sdf!)\napp.run()\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "A pure-Python Kafka client",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose kafka-python",
      "display": "installation without a compiled client core",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "a pure-Python Kafka client",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "When to consider aiokafka",
      "display": "producer lifecycle and delivery should be awaited",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "An asyncio producer on librdkafka",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose confluent-kafka",
      "display": "a documented asynchronous producer",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "an asyncio producer on librdkafka",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "Async producer and consumer applications",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose aiokafka",
      "display": "awaitable producer lifecycle operations",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "async producer and consumer applications",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "When to consider confluent-kafka",
      "display": "a librdkafka-backed asynchronous producer is preferred",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Stateful Kafka transformations",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose quixstreams",
      "display": "a streaming dataframe pipeline",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "stateful Kafka transformations",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Page introduction",
      "display": "Python kafka libraries let backend developers produce and consume Kafka messages.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: What is the best Kafka library for Python?",
      "display": "kafka-python provides a pure-Python client without a compiled core.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: What is the best Kafka library for Python?",
      "display": "Confluent provides an asyncio producer backed by its Kafka client.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: What is the best Kafka library for Python?",
      "display": "aiokafka targets asyncio applications.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: What is the best Kafka library for Python?",
      "display": "Quix Streams adds dataframe transformations and stateful processing.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does the Confluent Python client support asyncio?",
      "display": "The documented AIOProducer exposes an asynchronous producer API.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Does the Confluent Python client support asyncio?",
      "display": "Its batched async produce path does not support per-message headers.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Is asynchronous Kafka sending the same as asyncio?",
      "display": "kafka-python producer send returns a delivery future, and waiting on future.get blocks.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Is asynchronous Kafka sending the same as asyncio?",
      "display": "aiokafka exposes awaitable producer startup, send, and shutdown calls.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Can I share one Kafka consumer across threads?",
      "display": "The kafka-python consumer is not thread safe; keep the instance within one thread.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Why does my Confluent delivery callback not run?",
      "display": "The synchronous producer does not call its delivery callback until the application polls.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: How does aiokafka limit time spent adding a message to its buffer?",
      "display": "The Java max.block.ms producer setting is not implemented; wrap send with asyncio.wait_for for an explicit timeout.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does Quix Streams provide exactly-once processing by default?",
      "display": "The default processing guarantee is at-least-once; select exactly-once explicitly.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does a Kafka JSON serializer export JSON files?",
      "display": "The kafka-python serializer encodes producer message values; it does not establish a file-export feature.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Library name, confluent-kafka",
      "display": "confluent-kafka",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Monthly downloads, confluent-kafka",
      "display": "46.4M",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "License, confluent-kafka",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Package release, confluent-kafka",
      "display": "2.16.2",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release date, confluent-kafka",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Install, confluent-kafka",
      "display": "pip install confluent-kafka",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Quickstart, confluent-kafka",
      "display": "import asyncio\nfrom confluent_kafka.aio import AIOProducer\n\nasync def main():\n    p = AIOProducer({\"bootstrap.servers\": \"mybroker\"})\n    try:\n        # produce() returns a Future; first await the coroutine to get the Future,\n        # then await the Future to get the delivered Message.\n        delivery_future = await p.produce(\"mytopic\", value=b\"hello\")\n        delivered_msg = await delivery_future\n        # Optionally flush any remaining buffered messages before shutdown\n        await p.flush()\n    finally:\n        await p.close()\n\nasyncio.run(main())\n",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Repository stars, confluent-kafka",
      "display": "528",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Native asyncio API, confluent-kafka",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "librdkafka backend, confluent-kafka",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "API and application role, confluent-kafka",
      "display": "Low-level Kafka producer, consumer, admin, and Schema Registry integration client.",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Python requirement, confluent-kafka",
      "display": ">=3.9",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "First-call prerequisites, confluent-kafka",
      "display": "[\"Replace mybroker with a reachable Kafka broker and provision mytopic. This complete official async first-call snippet includes the two awaits, flush, and close. It is the published2.x asyncio surface, not the4.x Rust preview mentioned elsewhere in the README.\"]",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Stable versus preview backend, confluent-kafka",
      "display": "Stable2.16.2 uses librdkafka; README also announces a distinct4.x Rust preview.",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project function, confluent-kafka",
      "display": "def _publish(self, event: Dict[Text, Any]) -> None:\n    if self.partition_by_sender:\n        partition_key = bytes(event.get(\"sender_id\"), encoding=DEFAULT_ENCODING)\n    else:\n        partition_key = None\n\n    headers = []\n    if self.rasa_environment:\n        headers = [\n            (\n                \"RASA_ENVIRONMENT\",\n                bytes(self.rasa_environment, encoding=DEFAULT_ENCODING),\n            )\n        ]\n\n    reduced_event = rasa.shared.core.events.remove_parse_data(event)\n    structlogger.debug(\n        \"kafka.publish.event\",\n        event_info=\"Logging a reduced version of the Kafka event\",\n        topic=self.topic,\n        rasa_event=reduced_event,\n        partition_key=partition_key,\n        headers=headers,\n    )\n\n    serialized_event = json.dumps(event).encode(DEFAULT_ENCODING)\n\n    if self.producer is not None:\n        self.producer.produce(\n            self.topic,\n            value=serialized_event,\n            key=partition_key,\n            headers=headers,\n            on_delivery=delivery_report,\n        )\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Project source file, confluent-kafka",
      "display": "rasa/core/brokers/kafka.py",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project full_name, confluent-kafka",
      "display": "RasaHQ/rasa",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project stargazers_count, confluent-kafka",
      "display": "21.4K",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Library name, kafka-python",
      "display": "kafka-python",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Monthly downloads, kafka-python",
      "display": "18.5M",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "License, kafka-python",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Package release, kafka-python",
      "display": "3.0.13",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Package release date, kafka-python",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Install, kafka-python",
      "display": "pip install kafka-python",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Quickstart, kafka-python",
      "display": "# Serialize json messages\nfrom kafka import KafkaProducer, JsonSerializer\nproducer = KafkaProducer(value_serializer=JsonSerializer())\nproducer.send('fizzbuzz', {'foo': 'bar'})\n",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Repository stars, kafka-python",
      "display": "5.9K",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Native asyncio API, kafka-python",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "librdkafka backend, kafka-python",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "API and application role, kafka-python",
      "display": "Pure-Python producer, consumer, and admin clients with synchronous public calls.",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Python requirement, kafka-python",
      "display": ">=3.8",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "First-call prerequisites, kafka-python",
      "display": "[\"Reachable default localhost:9092 broker and fizzbuzz topic. Official first basic JSON send queues delivery; standalone applications must use the documented future.get()/flush()/close() lifecycle before exiting. JsonSerializer is the current3.x public serializer, not a lambda invented for this page.\"]",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Asyncio network engine versus public API, kafka-python",
      "display": "Asyncio networking is supported; public client calls remain blocking.",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project function, kafka-python",
      "display": "def remove_partition_from_consumer(self, partition):\n    deleted = self.active_partitions.pop(partition)\n    # Terminate if there are no more partitions to consume\n    if not self.active_partitions:\n        self.log.info(\"Completed reading from all partitions\")\n        self._finished = True\n        return\n    # Reassign the remaining partitions to the consumer while saving the\n    # position\n    positions = [\n        (p, self.consumer.position(p))\n        for p in self.active_partitions.values()\n    ]\n    self.consumer.assign(list(self.active_partitions.values()))\n    for topic_partition, position in positions:\n        self.consumer.seek(topic_partition, position)\n    self.log.info(\n        \"Completed reading from %s. Remaining partitions: %s\",\n        deleted,\n        self.active_partitions,\n    )\n",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project source file, kafka-python",
      "display": "kafka_utils/kafka_consumer_manager/util.py",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project full_name, kafka-python",
      "display": "YelpArchive/kafka-utils",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project stargazers_count, kafka-python",
      "display": "316",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Library name, aiokafka",
      "display": "aiokafka",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Monthly downloads, aiokafka",
      "display": "15.0M",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "License, aiokafka",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Package release, aiokafka",
      "display": "0.15.0",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release date, aiokafka",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Install, aiokafka",
      "display": "pip install aiokafka",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Quickstart, aiokafka",
      "display": "from aiokafka import AIOKafkaProducer\nimport asyncio\n\nasync def send_one():\n    producer = AIOKafkaProducer(bootstrap_servers='localhost:9092')\n    # Get cluster layout and initial topic/partition leadership information\n    await producer.start()\n    try:\n        # Produce message\n        await producer.send_and_wait(\"my_topic\", b\"Super message\")\n    finally:\n        # Wait for all pending messages to be delivered or expire.\n        await producer.stop()\n\nasyncio.run(send_one())\n",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Repository stars, aiokafka",
      "display": "1.4K",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Native asyncio API, aiokafka",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "librdkafka backend, aiokafka",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "API and application role, aiokafka",
      "display": "Asyncio-native low-level producer and consumer clients.",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Python requirement, aiokafka",
      "display": ">=3.11",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "First-call prerequisites, aiokafka",
      "display": "[\"Python requirement from current package metadata; localhost:9092 Kafka broker and my_topic available. Install uses the exact primary distribution name. Complete official start/send_and_wait/finally-stop lifecycle.\"]",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project function, aiokafka",
      "display": "@override\nasync def publish_batch(\n    self,\n    cmd: \"KafkaPublishCommand\",\n) -> Union[\"asyncio.Future[RecordMetadata]\", \"RecordMetadata\"]:\n    \"\"\"Publish a batch of messages to a topic.\"\"\"\n    batch = self._producer.producer.create_batch()\n\n    headers_to_send = cmd.headers_to_publish()\n\n    if isinstance(self.codec, BatchCodecProto):\n        encoded_batch = await self.codec.encode_batch(\n            cmd.batch_bodies, self.serializer\n        )\n    else:\n        encoded_batch = [\n            await self.codec.encode(body, self.serializer)\n            for body in cmd.batch_bodies\n        ]\n\n    for message_position, (message, content_type) in enumerate(encoded_batch):\n        if content_type:\n            final_headers = {\n                \"content-type\": content_type,\n                **headers_to_send,\n            }\n        else:\n            final_headers = headers_to_send.copy()\n\n        metadata = batch.append(\n            key=cmd.key_for(message_position),\n            value=message,\n            timestamp=cmd.timestamp_ms,\n            headers=encode_headers(final_headers),\n        )\n        if metadata is None:\n            raise BatchBufferOverflowException(message_position=message_position)\n\n    send_future = await self._producer.producer.send_batch(\n        batch,\n        cmd.destination,\n        partition=cmd.partition,\n    )\n    if not cmd.no_confirm:\n        return await send_future\n    return send_future\n",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project source file, aiokafka",
      "display": "faststream/kafka/publisher/producer.py",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project full_name, aiokafka",
      "display": "ag2ai/faststream",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project stargazers_count, aiokafka",
      "display": "5.4K",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Library name, faststream",
      "display": "FastStream",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Monthly downloads, faststream",
      "display": "1.9M",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "License, faststream",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Package release, faststream",
      "display": "0.7.8",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release date, faststream",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Install, faststream",
      "display": "pip install 'faststream[kafka,cli]'",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart, faststream",
      "display": "from faststream import FastStream\nfrom faststream.kafka import KafkaBroker\n# from faststream.confluent import KafkaBroker\n# from faststream.rabbit import RabbitBroker\n# from faststream.nats import NatsBroker\n# from faststream.redis import RedisBroker\n# from faststream.mqtt import MQTTBroker\n\nbroker = KafkaBroker(\"localhost:9092\")\n# broker = RabbitBroker(\"amqp://guest:guest@localhost:5672/\")\n# broker = NatsBroker(\"nats://localhost:4222/\")\n# broker = RedisBroker(\"redis://localhost:6379/\")\n# broker = MQTTBroker(\"localhost\")\n\napp = FastStream(broker)\n\n@broker.subscriber(\"in\")\n@broker.publisher(\"out\")\nasync def handle_msg(user: str, user_id: int) -> str:\n    return f\"User: {user_id} - {user} registered\"\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Official description, faststream",
      "display": "Connects to Kafka, RabbitMQ, NATS, Redis, and MQTT through one typed client.",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Quickstart source file, faststream",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Repository stars, faststream",
      "display": "5.4K",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Native asyncio API, faststream",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "librdkafka backend, faststream",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "API and application role, faststream",
      "display": "Broker application runtime with typed handlers, serialization, publisher/subscriber decorators, and in-memory tests.",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Python requirement, faststream",
      "display": ">=3.10",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "First-call prerequisites, faststream",
      "display": "[\"Save as basic.py; run faststream run basic:app with a reachable localhost:9092 broker. Kafka and cli are both official extras, combined mechanically in the install command. Publish a JSON object with user:str and user_id:int to in; the handler publishes its string result to out. Commented alternative broker imports are retained from the original.\"]",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Kafka transport dependency constraints, faststream",
      "display": "[\"confluent-kafka!=2.8.1,<3,>=2; python_full_version < \\\"3.13\\\" and extra == \\\"confluent\\\"\", \"confluent-kafka!=2.8.1,<3,>=2.6; python_full_version >= \\\"3.13\\\" and extra == \\\"confluent\\\"\", \"aiokafka<0.15,>=0.9; extra == \\\"kafka\\\"\"]",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, faust-streaming",
      "display": "faust-streaming",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, faust-streaming",
      "display": "288.1K",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, faust-streaming",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, faust-streaming",
      "display": "0.15.4",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, faust-streaming",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, faust-streaming",
      "display": "pip install faust-streaming",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, faust-streaming",
      "display": "import faust\n\napp = faust.App(\n    'hello-world',\n    broker='kafka://localhost:9092',\n    value_serializer='raw',\n)\n\ngreetings_topic = app.topic('greetings')\n\n@app.agent(greetings_topic)\nasync def greet(greetings):\n    async for greeting in greetings:\n        print(greeting)\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Official description, faust-streaming",
      "display": "Processes streams in Python as a fork of Faust.",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart source file, faust-streaming",
      "display": "hello_world.py",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Repository stars, faust-streaming",
      "display": "1.9K",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Native asyncio API, faust-streaming",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "librdkafka backend, faust-streaming",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "API and application role, faust-streaming",
      "display": "Asynchronous stream processing agents, distributed tables, and RPC operations.",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Python requirement, faust-streaming",
      "display": ">=3.10.0",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "First-call prerequisites, faust-streaming",
      "display": "[\"Save as hello_world.py and run faust -A hello_world worker -l info. Send one greeting with faust -A hello_world send greetings \\\"Hello Kafka topic\\\". Broker reachable on localhost:9092 and unique application id. Current package metadata, rather than the old README Python3.6 statement, governs Python runtime support.\"]",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Stateful windowing, faust-streaming",
      "display": "Distributed keyed tables with tumbling, hopping, and sliding windows.",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Library name, quixstreams",
      "display": "Quix Streams",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Monthly downloads, quixstreams",
      "display": "86.3K",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "License, quixstreams",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release, quixstreams",
      "display": "3.28.1",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Package release date, quixstreams",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Install, quixstreams",
      "display": "python -m pip install quixstreams",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart, quixstreams",
      "display": "from quixstreams import Application\n\napp = Application(broker_address=\"localhost:9092\")\ntopic = app.topic(\"input\")\n\nwith app.get_producer() as producer:\n    producer.produce(topic=topic.name, key=b\"key\", value=b\"value\")\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Repository stars, quixstreams",
      "display": "1.6K",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Native asyncio API, quixstreams",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "librdkafka backend, quixstreams",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "API and application role, quixstreams",
      "display": "Kafka-native streaming DataFrame application and stateful processing operators.",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Python requirement, quixstreams",
      "display": "<4,>=3.11",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "First-call prerequisites, quixstreams",
      "display": "[\"Disclosed API recipe: official get_producer example with its Application(...) placeholder filled from the official README and the100-message loop reduced to its one basic produce call. Existing input topic and localhost:9092 broker. Producer context performs cleanup.\"]",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Keyed time windows, quixstreams",
      "display": "[\"tumbling\", \"hopping\", \"sliding\"]",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Confluent dependency range, quixstreams",
      "display": "confluent-kafka[avro,json,protobuf,schemaregistry]<2.13,>=2.8.2",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Library name, sentry-arroyo",
      "display": "Arroyo",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Monthly downloads, sentry-arroyo",
      "display": "26.4K",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "License, sentry-arroyo",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Package release, sentry-arroyo",
      "display": "2.49.2",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release date, sentry-arroyo",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Install, sentry-arroyo",
      "display": "pip install sentry-arroyo",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart, sentry-arroyo",
      "display": "from arroyo.backends.kafka.configuration import (\n    build_kafka_consumer_configuration,\n)\nfrom arroyo.backends.kafka.consumer import KafkaConsumer\nfrom arroyo.types import Topic\n\nTOPIC = Topic(\"source-topic\")\n\nconsumer = KafkaConsumer(\n    build_kafka_consumer_configuration(\n        default_config={},\n        bootstrap_servers=[\"127.0.0.1:9092\"],\n        auto_offset_reset=\"latest\",\n        group_id=\"test-group\",\n    )\n)\n\nconsumer.subscribe([TOPIC])\n\nwhile True:\n    msg = consumer.poll(timeout=1.0)\n    if msg is not None:\n        print(f\"MSG: {msg.payload}\")\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Official description, sentry-arroyo",
      "display": "Works with streaming data in Python.",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Quickstart source file, sentry-arroyo",
      "display": "docs/source/getstarted.rst",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Repository stars, sentry-arroyo",
      "display": "63",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Native asyncio API, sentry-arroyo",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "librdkafka backend, sentry-arroyo",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "API and application role, sentry-arroyo",
      "display": "Kafka consumer/producer wrapper plus processing strategies and a managed StreamProcessor lifecycle.",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Python requirement, sentry-arroyo",
      "display": "Not declared in current package metadata",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "First-call prerequisites, sentry-arroyo",
      "display": "[\"Reachable127.0.0.1:9092 broker and source-topic. Start before publishing because auto_offset_reset is latest. This is the shortest complete official basic-consumer snippet, not its longer StreamProcessor strategy example. It polls indefinitely and the tutorial does not include graceful teardown.\"]",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Library name, pykafka",
      "display": "PyKafka",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Monthly downloads, pykafka",
      "display": "16.8K",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "License, pykafka",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Package release, pykafka",
      "display": "2.8.0",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Package release date, pykafka",
      "display": "Sep 2018",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Install, pykafka",
      "display": "pip install pykafka",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Quickstart, pykafka",
      "display": "from pykafka import KafkaClient\nclient = KafkaClient(hosts=\"127.0.0.1:9092,127.0.0.1:9093,...\")\n\nclient.topics\n",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Official description, pykafka",
      "display": "Implements a Kafka client in pure Python.",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Quickstart source file, pykafka",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Repository stars, pykafka",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Native asyncio API, pykafka",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "librdkafka backend, pykafka",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "API and application role, pykafka",
      "display": "Topic-oriented Python producer/consumer API with optional librdkafka acceleration and Kafka CLI tools.",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Python requirement, pykafka",
      "display": "Not declared in current package metadata",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "First-call prerequisites, pykafka",
      "display": "[\"Two original getting-started fragments combined: construct client and inspect topic metadata. Replace host-list placeholder with real broker addresses. The2018 release has old documented Python/broker compatibility; modern runtime/Kafka4 compatibility was not established here. No old string-message example is presented as Python3 bytes-safe.\"]",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Release and compatibility boundary, pykafka",
      "display": "Latest published release is2.8.0 from2018; modern Python and Kafka4 compatibility not established.",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python Kafka libraries kafka-python confluent-kafka aiokafka Quix Streams producer consumer code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
