Skip to main content

Kafka native client

What this is: the direct Kafka client library — the Kafka protocol implementation embedded in your process. What it is not: a gRPC service or generated stubs. For cross-language/browser clients over gRPC, use kafka-grpc plus kafka-proxy. Decision guide: KAFKA.md ("Which Kafka package do I need?").

An in-process Kafka protocol client for native applications: the Kafka wire implementation runs in your process — no proxy process, no gRPC hop. It speaks the Kafka binary protocol to Apache Kafka (KRaft) or Redpanda, negotiating API versions per connection.

Three form factors share one wire implementation:

  • kafka-native (this repo) — in-process library: Rust crate, C ABI, per-language FFI wrappers. Native only.
  • kafka-grpc — generated client stubs over gRPC transports from grpc-over-datachannels; browser OK, reaches a broker through the proxy.
  • kafka-proxy — the sidecar that bridges the two.

This repository is a generated export (version v0.49.0).

Use

Rust:

kafka-native = "0.1"
let broker = kafka_native::Broker::new(config);
broker.create_topics(vec![("events".into(), 3, 1)], 30_000, false).await?;

C: link libkafka_native and include crates/kafka-service/include/kafka_native.h. Calls take a method name and the protobuf-encoded request and return the protobuf-encoded response.

Python (stdlib ctypes, same generated messages as the gRPC client):

from grpcdc.kafka_native import NativeKafkaClient
client = NativeKafkaClient("127.0.0.1:9092")

Surface: metadata, produce/consume, producer sessions (idempotence, transactions), consumer groups, and the admin operations (configs, partitions, delete-records, groups, ACLs, transactions) — see KAFKA.md. Plaintext brokers only for now; SASL/TLS stay on the sidecar path.

Tests

docker build -f docker/kafka-native-ci.Dockerfile -t kafka-native-ci .
docker run --rm kafka-native-ci

GitHub Actions runs the same image on every push.

Metadata

Release files for kafka-native 0.49.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kafka-native 0.49.0
File Size Uploaded Provenance Actions
kafka_native-0.49.0.tar.gz 130.8 kB With provenance Details for kafka_native-0.49.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kafka-native 0.49.0
File Actions
kafka_native-0.49.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for kafka_native-0.49.0-cp313-cp313-manylinux_2_28_x86_64.whl
kafka_native-0.49.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for kafka_native-0.49.0-cp313-cp313-manylinux_2_28_aarch64.whl
kafka_native-0.49.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for kafka_native-0.49.0-cp313-cp313-macosx_11_0_arm64.whl
kafka_native-0.49.0-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for kafka_native-0.49.0-cp313-cp313-macosx_10_12_x86_64.whl
kafka_native-0.49.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for kafka_native-0.49.0-cp312-cp312-manylinux_2_28_x86_64.whl
kafka_native-0.49.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for kafka_native-0.49.0-cp312-cp312-manylinux_2_28_aarch64.whl
kafka_native-0.49.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for kafka_native-0.49.0-cp312-cp312-macosx_11_0_arm64.whl
kafka_native-0.49.0-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for kafka_native-0.49.0-cp312-cp312-macosx_10_12_x86_64.whl

Total release size: 14.2 MB

Release files / kafka_native-0.49.0.tar.gz

Download URL kafka_native-0.49.0.tar.gz
Size 130.8 kB
Tags Source
SHA-256 checksum
How to use checksums
04e82da8aa026d75b28ad6c85537fe6d78152eb1baeeae63e902715303c24def
BLAKE2b-256 checksum
How to use checksums
f418b6f449ab074a3fc57fdd2aa80f267a9398afbf2f3518feaf0a628e93b070
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / kafka_native-0.49.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL kafka_native-0.49.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 1.9 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
abcb0c14697d998ed105743280e65bd0c22c5e4afeab9d7e17b02904f0d4fb28
BLAKE2b-256 checksum
How to use checksums
5ea05df662deae739c710f8c746a85032730be42b74734dd8ad92fd6d994fdee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / kafka_native-0.49.0-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL kafka_native-0.49.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 1.8 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
92df5b09e6ccdc1101c9223cd0332bdfcab4a92706359a96ea7ec94635adbdce
BLAKE2b-256 checksum
How to use checksums
768e0c53b1b048a1442fdfcf86cd094cd6f877c624f400f576c30678efa885f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / kafka_native-0.49.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL kafka_native-0.49.0-cp313-cp313-macosx_11_0_arm64.whl
Size 1.6 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0bfbd03bc9313079c7288a9f9070fed6e8ebffe150023b688988340f1a6d04c4
BLAKE2b-256 checksum
How to use checksums
6d894a687e4d2f54bd1f9f5de1f9cedfcaa9d485b8b5019f6cef83df31b0c3ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / kafka_native-0.49.0-cp313-cp313-macosx_10_12_x86_64.whl

Download URL kafka_native-0.49.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 1.7 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2e13f86593ca33566edc5710a244867e58537db240dcccd954dfc7ccd0cbc0fa
BLAKE2b-256 checksum
How to use checksums
060642441aca9582f32d7ff11fec4e58d6e84aca301c7eddb389ef8568a17bbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / kafka_native-0.49.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL kafka_native-0.49.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 1.9 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7604a7e51d4cb7c16d3dee007bca347bfa82aca3a85e6dc6242cb9bc6e4cc79f
BLAKE2b-256 checksum
How to use checksums
cb9fcbdd95c37973f05cf72c0bc87841c94454dd3ec419e27f78b9e6cf92be65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / kafka_native-0.49.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL kafka_native-0.49.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 1.8 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
f51cb389ae18d0f75a99e9656350691669c4edf1fdd977d2ea5fffe9812c4344
BLAKE2b-256 checksum
How to use checksums
91a4e855abf7afe40a68ea4616e191ef18b9f065b6148bb6716e6c2e739f8f9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / kafka_native-0.49.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL kafka_native-0.49.0-cp312-cp312-macosx_11_0_arm64.whl
Size 1.6 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
94b7154d2628fb9b1018f5ebb5b0969927cca385148ec17b36cf11ddb2ce3949
BLAKE2b-256 checksum
How to use checksums
82a448a5985dd7248612c420398300dac7e9f42bdc90330b3ef9e8f513fa8097
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / kafka_native-0.49.0-cp312-cp312-macosx_10_12_x86_64.whl

Download URL kafka_native-0.49.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 1.7 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1c64fb56569feabb4403cc5acc8570a7d4e4b9d7190903305cf1f4e465dfbf2a
BLAKE2b-256 checksum
How to use checksums
81385de9712dfd8daca693b87c6f82598aba674ce1eba5df681602efbe08cb02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for kafka-native 0.49.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for kafka_native-0.49.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page