{"repo":"alm0ra/mockafka-py","free":true,"listed":false,"github":"https://github.com/alm0ra/mockafka-py","clone":"git clone https://github.com/alm0ra/mockafka-py.git","description":"Mockafka-py is a Python library designed for in-memory mocking of Kafka.[aiokafka - confluence-kafka-python]","language":"Python","stars":66,"topics":["mock","confluent-kafka-python","mockafka","aiokafka","kafka"],"license":"MIT","category":"data-pipelines","readme_excerpt":"Mockafka-py is a Python library designed for in-memory mocking of Kafka. Mockafka: Fake Version for confluent-kafka-python & aiokafka Features - Compatible with confluent-kafka - Compatible with aiokafka (async support) - Supports Produce, Consume, and AdminClient operations with ease. Getting Start Installing via pip or poetry Usage Multi-Decorator Examples for confluent-kafka-python In the following examples, we showcase the usage of multiple decorators to simulate different scenarios in a Mockafka environment. These scenarios include producing, consuming, and setting up Kafka topics using the provided decorators. Example 1: Using @produce and @consume Decorators Test Case: test produce decorator Example 2: Using Multiple @produce Decorators Test Case: test produce twice Example 3: Using @bulk produce and @consume Decorators Test Case: test bulk produce decorator Example 4: Using @setup kafka and @produce Decorators Test Case: test produce with kafka setup decorator Example 5: Using @setup kafka , Multiple @produce , and @consume Decorators Test Case: test consumer decorator Using classes like confluent-kafka Output: Async support Multi-Decorator Examples for aiokafka Example 1: Using @aproduce and @aconsume and @asetup kafka Decorators Test Case: test produce and consume with decorator Example 2: Using @aproduce and @asetup kafka Decorators Test Case: test produce with decorator","default_branch":null,"files":null,"tree":[],"storefront":"/r/alm0ra","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alm0ra/mockafka-py/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}