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.41.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.41.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.41.0
File Size Uploaded Provenance Actions
kafka_native-0.41.0.tar.gz 486.2 kB With provenance Details for kafka_native-0.41.0.tar.gz

Built distributions (wheels)

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

Total release size: 15.5 MB

Release files / kafka_native-0.41.0.tar.gz

Download URL kafka_native-0.41.0.tar.gz
Size 486.2 kB
Tags Source
SHA-256 checksum
How to use checksums
026da988baa3875bc40df0d2b29897eed6a092de603e6476f6d403df9172f4e1
BLAKE2b-256 checksum
How to use checksums
408b5605feec3cb91012f190c8bd6e35bc9dd942530fab1ed40bde5d9fb24534
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 12, 2026.

Transparency log

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

Download URL kafka_native-0.41.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
ecfb62ab85343d027204aa20af2f59e5292e7713b76ccfa05cdce0ae4bc7d89a
BLAKE2b-256 checksum
How to use checksums
84639944159045089c5f12856ce9731f255c4d0a011be1350bb0d5b9c4c7e7bc
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 12, 2026.

Transparency log

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

Download URL kafka_native-0.41.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
2eac89a11d8298320c4d594b2b8ffb87234313029e15a65a05f15816fbc9d067
BLAKE2b-256 checksum
How to use checksums
d0a8d53eb18db90b9b77ebce66603569d1752d2a8cfeeb75efb9d4108f70a51f
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 12, 2026.

Transparency log

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

Download URL kafka_native-0.41.0-cp313-cp313-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
15caa7b8673c942f0979ed8745a8dddd05663f2c95b6bdf78603ba15289e3826
BLAKE2b-256 checksum
How to use checksums
eacf9350bcb04b570a28c002063c8384b3956432f00c54ac81d39fc2f830932f
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 12, 2026.

Transparency log

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

Download URL kafka_native-0.41.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 1.6 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0ee76e07758028a0d310018866bc6eaac77f669c8b04c444e511da919aa345cb
BLAKE2b-256 checksum
How to use checksums
2c9b4956a6fb7f74154a9700084fcaa6ceb94914431876bcd7da475ef97b9b6c
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 12, 2026.

Transparency log

Release files / kafka_native-0.41.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL kafka_native-0.41.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 1.8 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
d146a0d400c7703ca01ad9670d453bda0a78df52727667236c108beee0fd3e63
BLAKE2b-256 checksum
How to use checksums
06b271b38b166b4bdbf428dd5e095cd74f57155771d855f8bd963a28930abd4c
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 12, 2026.

Transparency log

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

Download URL kafka_native-0.41.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
66045e76a889b81701d801d7ffbbd6dbc58cdca2f22c966a28ea0e116802697b
BLAKE2b-256 checksum
How to use checksums
4502a91399545512da6f89839c56228b971b0d4484ae14fe1eed6fa3b6e1b8c2
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 12, 2026.

Transparency log

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

Download URL kafka_native-0.41.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
26d57627706e8d3c58e086343a091a01fab9f93684d8ed6e0f67f953aa7189bc
BLAKE2b-256 checksum
How to use checksums
960ec8c510ed5b180cb74b5fa61c3454d5c58b2bb7149586f01ef2bac61e1872
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 12, 2026.

Transparency log

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

Download URL kafka_native-0.41.0-cp312-cp312-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d636ccb81197ae8841ff6e8217e6f9d8ce7dcb9d57d9af855345a97c2ce0cce4
BLAKE2b-256 checksum
How to use checksums
143d8a39223a8c1570bc772295db944dd2cdbcbbd855a948abea0482c41f64cf
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 12, 2026.

Transparency log

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

Download URL kafka_native-0.41.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 1.6 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9929de802ff40fe44c68c8abd5de7f92e4c7545dbc97e2d1283bedfc93978235
BLAKE2b-256 checksum
How to use checksums
1f9ff490d4ee36859d8f00d14e83ddad313d7e8d91f58db90af3c66d67a5351a
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 12, 2026.

Transparency log

Security for kafka-native 0.41.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 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for kafka_native-0.41.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 12, 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