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

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.1

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.1
File Size Uploaded Provenance Actions
kafka_native-0.49.1.tar.gz 130.8 kB With provenance Details for kafka_native-0.49.1.tar.gz

Built distributions (wheels)

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

Total release size: 14.2 MB

Release files / kafka_native-0.49.1.tar.gz

Download URL kafka_native-0.49.1.tar.gz
Size 130.8 kB
Tags Source
SHA-256 checksum
How to use checksums
390eb731bf8e99806276f46b5064565a74d5a0d2a6be282b3dd5017942c95dca
BLAKE2b-256 checksum
How to use checksums
38da1d325a5925ea15dbd9b92030a0cf3004635761c255b1c230746a69a0a2a3
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.1-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL kafka_native-0.49.1-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
1c5bea10214ed5e3beb91a4b036f18a0f3469d53ded2a9a3f0d18956456f37dc
BLAKE2b-256 checksum
How to use checksums
53cbb1cff19b42bcd314b61516ed240a201dad60b592a22e24689d351b77baf8
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.1-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL kafka_native-0.49.1-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
e67a306bec56ad6086c12f1a4bcd535d8ec43b4fd621f5b7970a8d5820283b63
BLAKE2b-256 checksum
How to use checksums
97c1160683c0fea1a47bc38eabe6fa7df1e426dbf73aa6c3b6a721c7930c569c
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.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL kafka_native-0.49.1-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
cb784b03c4af867a7f51336cab923da2b5d11c21eb66eda9e99000b0fafae1dd
BLAKE2b-256 checksum
How to use checksums
5d2efb47d2d982e569d93b78d16aac66f4813ed4769049f3faa84ee0cd4677e1
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.1-cp313-cp313-macosx_10_12_x86_64.whl

Download URL kafka_native-0.49.1-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
52f501581b498f49217632de1c252a77a091b1c99bffa0d3ee362cd140c03aa4
BLAKE2b-256 checksum
How to use checksums
81a02d0b0f1384bd64f6085e8c74a3e986348cfdffba05306440752b956bb8e7
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.1-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL kafka_native-0.49.1-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
dd8a029ecd1f35614e6d8597c643671b4671f6c0bc965abfd4eb45d54457b97b
BLAKE2b-256 checksum
How to use checksums
0b5a2612c8970c0d8ddbd158ed6dc5f4e3a73fecf8ec3992cff9f090e4cbfdeb
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.1-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL kafka_native-0.49.1-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
6c75c9e648f6188f37c07c2227f829d4f7908e984fe9aa08d0271c3c441c0dbf
BLAKE2b-256 checksum
How to use checksums
4092c2f8736627fa569571f7a475ff7f2ba0b111354eaec4f0b43b0ec7f0e66c
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.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL kafka_native-0.49.1-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
8788322984a72ee473cff09be2b6f670918320e3edd3a9e67ba48bccc6d13663
BLAKE2b-256 checksum
How to use checksums
c447f65ed1f0243246dfdd8ec9b1b48fa47b2366944a60582592f7896e77a3c6
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.1-cp312-cp312-macosx_10_12_x86_64.whl

Download URL kafka_native-0.49.1-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
793089ce6a4dac71f7c785dda02aef474023a9f09de685af6bf6e00cf8bcf7dc
BLAKE2b-256 checksum
How to use checksums
3bffdacc49d4bd02ae5442527c7a26a28f6b6e01d1aed4ab0285e2c7f955ff72
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.1

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.1.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