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.50.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
That runs, against real Apache Kafka and Redpanda fixtures:
cargo test for both crates (unit tests plus Broker and
KafkaService produce/consume integration tests), the C ABI
smoke test, and the Python produce/consume e2e. Per-language
FFI wrapper tests for the other generated languages run in
the main grpc-over-datachannels repo (make test-kafka).
GitHub Actions runs the same image on every push.
Metadata
Release files for kafka-native 0.50.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kafka_native-0.50.0.tar.gz | 135.4 kB | With provenance | Details for kafka_native-0.50.0.tar.gz |
Built distributions (wheels)
Total release size: 14.2 MB
Release files / kafka_native-0.50.0.tar.gz
| Download URL | kafka_native-0.50.0.tar.gz |
|---|---|
| Size | 135.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4be51579592d4bb2cc9f658594e0825275c108f96867a38956ad05fa052e71fa
|
|
BLAKE2b-256 checksum How to use checksums |
3719af719a4e504245991458bea923d840f51b467b5dbb50cf3a7e98019acb7a
|
| 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 30, 2026.
Transparency logRelease files / kafka_native-0.50.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | kafka_native-0.50.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 |
ab3fca6fd4dc285bb10f98b386fcac1a1fa5532534c627d91a95386bdd6d3f9c
|
|
BLAKE2b-256 checksum How to use checksums |
a8bddf57e76d46e8e49b80c789f1510a5b1f39f82e6cd2dc8e816aa9074dbdc5
|
| 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 30, 2026.
Transparency logRelease files / kafka_native-0.50.0-cp313-cp313-manylinux_2_28_aarch64.whl
| Download URL | kafka_native-0.50.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 |
881554e20e878e50ff0b9a60c9e2efada88168597fb3a37cbd9f047c45b0c0dd
|
|
BLAKE2b-256 checksum How to use checksums |
a26140ad4ffc95fd6380f60f84f9d4009107e56fed6e8355b4ed3f756b26f2e2
|
| 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 30, 2026.
Transparency logRelease files / kafka_native-0.50.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | kafka_native-0.50.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 |
18dfb6053e88b63c0195a2bd582155709d97dcc3255d87bb07a1245801acbea1
|
|
BLAKE2b-256 checksum How to use checksums |
c130703290427e7f659f553134992681159c88a575cdbfb8cf21a0f2c68b2924
|
| 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 30, 2026.
Transparency logRelease files / kafka_native-0.50.0-cp313-cp313-macosx_10_12_x86_64.whl
| Download URL | kafka_native-0.50.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 |
7f27c54d574cbb0b3ae9474b0b0f2cb44acbfc7e0629b3530f78c86e2cb46fbd
|
|
BLAKE2b-256 checksum How to use checksums |
856747d3f042b84246a80702b65249728264840ba43727fee3f23c58a13c7505
|
| 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 30, 2026.
Transparency logRelease files / kafka_native-0.50.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | kafka_native-0.50.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 |
0b46a1196ca843fe99e2c8e9334191dc0b4141e4ac05aaea8a89e5510817e851
|
|
BLAKE2b-256 checksum How to use checksums |
69d30fd3c3ef2e28dd965b90141d24b28759c2a37117989b8cf87994f0a978b0
|
| 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 30, 2026.
Transparency logRelease files / kafka_native-0.50.0-cp312-cp312-manylinux_2_28_aarch64.whl
| Download URL | kafka_native-0.50.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 |
39966a7d973dcfae42ef8517a6673f379eb10bfc7b38a276e2024e33fdcaa4aa
|
|
BLAKE2b-256 checksum How to use checksums |
4cd9077e995bb565b135d586e7c2240eb83edf800f7d3a6305a1efc4e92f4978
|
| 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 30, 2026.
Transparency logRelease files / kafka_native-0.50.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | kafka_native-0.50.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 |
78cd058a398f8c235c304d171861153d7cfdf54edde72b43358919280c98ead9
|
|
BLAKE2b-256 checksum How to use checksums |
93c981865b2cc1e1ad9722c07b244a8fcd957d2be1d3c9618cb362f8b5bf3b47
|
| 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 30, 2026.
Transparency logRelease files / kafka_native-0.50.0-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | kafka_native-0.50.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 |
b1b22f58b61f8d2192db5b5537d40741f60f61bb7067b370c1a8ea62dc9eb4d4
|
|
BLAKE2b-256 checksum How to use checksums |
8a52e5cab3830ccb61b40f3846e09008bc429937b6fbfceb3b79d0a1bfc3ef19
|
| 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 30, 2026.
Transparency logSecurity for kafka-native 0.50.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.
Attestation for kafka_native-0.50.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 30, 2026.
Transparency logA 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.