qmetrics.net

kafka-python

Pure Python client library for Apache Kafka

kafka-python screenshot

kafka-python implements Kafka producers, consumers, and admin clients without native extensions. It installs via pip, supports Python 3.8+, and includes CLI modules for quick cluster tasks.

Overview

kafka-python is a client library for Apache Kafka written entirely in Python. High-level KafkaProducer, KafkaConsumer, and KafkaAdminClient classes cover produce, consume, and administrative workflows, with optional crc32c for faster checksumming.

Consumers support consumer groups, manual partition assignment, serializers for keys and values, and cooperative rebalance features from recent Kafka improvement proposals. Admin functionality is also exposed through kafka-python admin and python -m kafka.admin for users without a local JVM toolchain.

Version 3.0 regenerated protocol code from upstream Kafka message schemas, expanded networking with asyncio-style loops, and raised the minimum Python version to 3.8.

Examples in the documentation show iterating messages, subscribing to topics, and configuring bootstrap servers for local brokers.

Key features

  • KafkaProducer and KafkaConsumer APIs
  • KafkaAdminClient for cluster management
  • Pure Python without Cython dependencies
  • Optional crc32c performance dependency
  • CLI admin, producer, and consumer modules
  • Consumer group and manual assign support
  • Key and value deserializer helpers

Use cases

  • Stream processing prototypes in Python
  • Administer Kafka without Java bin scripts
  • Integrate services with existing Python stacks

Tags

Similar software

Bull

Redis-backed distributed job queue for Node.js

Bull is a Node.js queue library backed by Redis for delayed, prioritized, repeatable, and rate-limited background jobs with sandboxed workers.

  • Redis-backed durable queues
  • Delayed and cron-repeatable jobs
  • Job priorities and rate limiting
JavaScriptDetails →
★ 16.3k⟳ 6 months agoMIT
Open Source Alternative to:Amazon SQS

Asynq

Redis-backed distributed task queue for Go

A Go library for enqueueing background work and processing it with worker pools backed by Redis.

  • Redis-backed task queues
  • Scheduled and periodic tasks
  • Retries and crash recovery
GoCLIDetails →
★ 13.9k⟳ 23 days agoMIT

sarama

Go client library for Apache Kafka

Sarama is a Go module that implements an Apache Kafka client. It includes mocks for tests, example applications, and command-line utilities for diagnostics.

  • Apache Kafka protocol client
  • Go module with semver API
  • Mocks subpackage for unit tests
GoDetails →
★ 12.5k⟳ todayMIT

RQ

Redis-backed background job queue for Python

RQ is a Python library that queues functions for background workers backed by Redis or Valkey. It targets simple setup with scaling patterns for larger deployments.

  • Function calls enqueued to Redis queues
  • Workers with prioritized queue lists
  • Deferred and scheduled job execution
PythonDetails →
★ 10.7k⟳ 6 days agoBSD-2-Clause

BullMQ

Redis-backed distributed job queue for Node and other languages

BullMQ is an open-source message queue and job processor built on Redis, with client libraries for several runtimes.

  • Redis-backed job queues
  • Multi-language producer and worker clients
  • Delayed, scheduled, and repeatable jobs
TypeScriptDetails →
★ 9.7k⟳ yesterdayMIT

MobileIMSDK

Cross-platform instant messaging transport SDK

MobileIMSDK is a lightweight IM protocol stack with UDP, TCP, and WebSocket options, Netty-based server, and client libs for Android, iOS, Java, and related mobile targets.

  • UDP TCP WebSocket protocols
  • Netty-based IM server
  • QoS resend and deduplication
Objective-CAndroid, iOSDetails →
★ 6.1k⟳ 1 month agoApache-2.0