Skip to main content

Kafka native client

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.44.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-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.44.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.44.0
File Size Uploaded Provenance Actions
kafka_native-0.44.0.tar.gz 517.7 kB With provenance Details for kafka_native-0.44.0.tar.gz

Built distributions (wheels)

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

Total release size: 14.2 MB

Release files / kafka_native-0.44.0.tar.gz

Download URL kafka_native-0.44.0.tar.gz
Size 517.7 kB
Tags Source
SHA-256 checksum
How to use checksums
31ce9e4389c8566327c8b879058be79f859e256f9e36a3d91f3586c6ecd36e0c
BLAKE2b-256 checksum
How to use checksums
a1806b596a8ae4a099fcaadf5e2a6ddaddd1b042190b8eb01bab083ba6050fb7
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 19, 2026.

Transparency log

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

Download URL kafka_native-0.44.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 1.8 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1277fed661037e2b8deb8bb0e251e8b1f8df7ed054b83e837b32e711ec764c88
BLAKE2b-256 checksum
How to use checksums
3f90a76a12b36af93f47e2341777c24ca7721e2c2949638f69bc314f1520afd1
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 19, 2026.

Transparency log

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

Download URL kafka_native-0.44.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 1.7 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
2bd4a643ba15396d5ae99897c16c9e95d932c8e0d3150957ed58f5c08ebc4f28
BLAKE2b-256 checksum
How to use checksums
c3c5dfda9b019389663c0f1203e194daa904b0a05ad71379d9fc9c208a65ff82
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 19, 2026.

Transparency log

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

Download URL kafka_native-0.44.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
ae4748f996ca122760c2b53d636424f6b08cf29f8a2472121a2c6e24629b0d80
BLAKE2b-256 checksum
How to use checksums
0c241c5dfbc7e617aae21539bdd16f3c312ae146857e60e928a66cd6d2a007e0
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 19, 2026.

Transparency log

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

Download URL kafka_native-0.44.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
dde2a66b9b8ca0560b58e0063455dd30eb82ad9c39cf2eba2df5fdba27b790bf
BLAKE2b-256 checksum
How to use checksums
92ef762d6abecb1fc8efd857c3bd5327fca0c542740d6ff24046965672cadfed
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 19, 2026.

Transparency log

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

Download URL kafka_native-0.44.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 1.8 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6336abc8171fb902b1f22e83918a8c718b0a062c0009d2dfb188cc94b0a3d5b9
BLAKE2b-256 checksum
How to use checksums
e1e70963628dcffb0e22c4b0a045ac896779789112033725619b8a4e716ecb84
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 19, 2026.

Transparency log

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

Download URL kafka_native-0.44.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 1.7 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
2b6ae18398c1bb3184f1f547495c3023f211f73bb139fc3c70d20acd3ba4fd4e
BLAKE2b-256 checksum
How to use checksums
bbce82b4d2234767e2b6d5f07a60d6635ef110fbca64548c79985b854f32fd1b
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 19, 2026.

Transparency log

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

Download URL kafka_native-0.44.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
4b1d302464eb179132fee7f197b529049c8cb266e9e2961e5005f584e09a28ff
BLAKE2b-256 checksum
How to use checksums
b776300290b5eaf2b1865d810573e34d08bde2725c1846b9b4fb07c50d92dd3e
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 19, 2026.

Transparency log

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

Download URL kafka_native-0.44.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
dff0df6bcb1d1994f46969a3f8814b6a72196f44456d60c34875591a37781ca2
BLAKE2b-256 checksum
How to use checksums
6d38eeb68a2a6b98b774041a8cf66d660bd3f10422553e568c513a8df2c6b415
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 19, 2026.

Transparency log

Security for kafka-native 0.44.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.44.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 19, 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