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.47.3).

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-native/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.47.3

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.47.3
File Size Uploaded Provenance Actions
kafka_native-0.47.3.tar.gz 585.6 kB With provenance Details for kafka_native-0.47.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kafka-native 0.47.3
File Actions
kafka_native-0.47.3-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.47.3-cp313-cp313-manylinux_2_28_x86_64.whl
kafka_native-0.47.3-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for kafka_native-0.47.3-cp313-cp313-manylinux_2_28_aarch64.whl
kafka_native-0.47.3-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for kafka_native-0.47.3-cp313-cp313-macosx_11_0_arm64.whl
kafka_native-0.47.3-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for kafka_native-0.47.3-cp313-cp313-macosx_10_12_x86_64.whl
kafka_native-0.47.3-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.47.3-cp312-cp312-manylinux_2_28_x86_64.whl
kafka_native-0.47.3-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for kafka_native-0.47.3-cp312-cp312-manylinux_2_28_aarch64.whl
kafka_native-0.47.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for kafka_native-0.47.3-cp312-cp312-macosx_11_0_arm64.whl
kafka_native-0.47.3-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for kafka_native-0.47.3-cp312-cp312-macosx_10_12_x86_64.whl

Total release size: 14.8 MB

Release files / kafka_native-0.47.3.tar.gz

Download URL kafka_native-0.47.3.tar.gz
Size 585.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e7c343bf2ac3ffda7be80b259335d046eec53aab72a8e8665516546d957f6f97
BLAKE2b-256 checksum
How to use checksums
e3a6d524466122e84cd7bb8af7436831673dbc9440a5d0d0c5dc340210cf5398
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 26, 2026.

Transparency log

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

Download URL kafka_native-0.47.3-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
893173ab81336d4eee8ee9d7f142370592d3310098277eb49b9e42d8cc21f59d
BLAKE2b-256 checksum
How to use checksums
c1959bc603213e1d82e9c923e30a14fb1a7caabd84cf66d97008f3c9e78ae52c
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 26, 2026.

Transparency log

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

Download URL kafka_native-0.47.3-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
28c1383a5caae056e2747f918e2d4dd77e68230bc190cb422247f3bda8b2096a
BLAKE2b-256 checksum
How to use checksums
0bbf8029da99463002716c3835df8c1f3e396250325b578e39367772ce8fb737
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 26, 2026.

Transparency log

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

Download URL kafka_native-0.47.3-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
b43a746e2a7ec6337e0ff3e48ef2aa853f2c17365c1caf15a912c365a04c7794
BLAKE2b-256 checksum
How to use checksums
d7b92272a9e02d3e17509dd4ab2706ddec109c9708034ada1e12df152f51e004
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 26, 2026.

Transparency log

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

Download URL kafka_native-0.47.3-cp313-cp313-macosx_10_12_x86_64.whl
Size 1.8 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c5ea74327b932379b35184235eee48adeb214cb8cb7478997deac49e7f738508
BLAKE2b-256 checksum
How to use checksums
65db60dbd695f9d848b74974e87cf9c2169e35607d8096885973537d5388bbdc
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 26, 2026.

Transparency log

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

Download URL kafka_native-0.47.3-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
159541bf77540b4ad76e0709a1ab4605c8cb79aa27dfa1d606acd4745af45c55
BLAKE2b-256 checksum
How to use checksums
52c1eb7d8530d28cf488f5d35220a38f762b0f526643a5d82884aca878d3da8b
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 26, 2026.

Transparency log

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

Download URL kafka_native-0.47.3-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
60b334843329cf6738d09181c47131d0a91c2e0ccf3deee647d5da4c12c47d5e
BLAKE2b-256 checksum
How to use checksums
34728b818926067ab180d47e17359627667ed79afd4a95a00de1d7c05c68e9c6
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 26, 2026.

Transparency log

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

Download URL kafka_native-0.47.3-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
b009d6703dc9b077c63b5c813db0e6d7a5a484de56ff0b52d47c4a4907670b52
BLAKE2b-256 checksum
How to use checksums
52effa3b23257a933e456e1bb9feb1279addf1e9b2c48c50abd18a870561dd52
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 26, 2026.

Transparency log

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

Download URL kafka_native-0.47.3-cp312-cp312-macosx_10_12_x86_64.whl
Size 1.8 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7090b797b58c734edf997eeb3310b67872081ead6bbf57279acc214427840ffd
BLAKE2b-256 checksum
How to use checksums
6fadd5195fd4279fcd2efa83fbd5845ebdc0fcea0e45be6bed504f83e4099def
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 26, 2026.

Transparency log

Security for kafka-native 0.47.3

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.47.3.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 26, 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