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

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

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.2
File Size Uploaded Provenance Actions
kafka_native-0.47.2.tar.gz 585.1 kB With provenance Details for kafka_native-0.47.2.tar.gz

Built distributions (wheels)

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

Total release size: 14.8 MB

Release files / kafka_native-0.47.2.tar.gz

Download URL kafka_native-0.47.2.tar.gz
Size 585.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8bf13e1b43ee8991123dc0fed1a6cccd7000c1e787a2bee723ca4435a3c2bea9
BLAKE2b-256 checksum
How to use checksums
a4b52e40a01296dd53ab9264dcdb4873896a9354ef7a00e3efd17025d9f17d4a
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 25, 2026.

Transparency log

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

Download URL kafka_native-0.47.2-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
ceaaead45b70b3ef83c97c3a5ee14ac7229d870291ee568ec78b8c89c48b181f
BLAKE2b-256 checksum
How to use checksums
e08a28e62945616566eb6c2acb57036fbd72de5773c1c725ffd6b58b7e307d39
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 25, 2026.

Transparency log

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

Download URL kafka_native-0.47.2-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
bbd543c27eceb6c693d89016333bd59443fe02707ccb52658be086e025a44138
BLAKE2b-256 checksum
How to use checksums
c821728bd2bb5a32bfb65075a8b06ac0d2749992b24870d93ea94bd5aeeeef35
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 25, 2026.

Transparency log

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

Download URL kafka_native-0.47.2-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
3bbb4090c2e117d696bf6ac9b10f30c1df01577f11bd1cb5c0dc7a83c0af5107
BLAKE2b-256 checksum
How to use checksums
ca261a5014f0815b7783d9311de250a8b27f1292aa5865bfbe490d61ef69d650
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 25, 2026.

Transparency log

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

Download URL kafka_native-0.47.2-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
d76af60b239b55d345a5cef6c4fcfa4879e80fe47713c4e66319054e83ee18b5
BLAKE2b-256 checksum
How to use checksums
8bb2af98acfd31499837aeb2561e482c9b4526d97ccb6c8285365040e2451095
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 25, 2026.

Transparency log

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

Download URL kafka_native-0.47.2-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
c427f28305a68ca696d6e98e5950a2305323ecc1fd39aee86e00bbc824e59ff9
BLAKE2b-256 checksum
How to use checksums
6c588d773edf6d931c318d54e172448c0b95576e4ecd1b9aa6f3bcfcc67a4f21
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 25, 2026.

Transparency log

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

Download URL kafka_native-0.47.2-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
96e7539e2662440b13492d64415bad378012d5cd180ebdf88247536650cfbdf7
BLAKE2b-256 checksum
How to use checksums
1a324f615c37a13f31a0d7e48e8b3507de0f76a922e8304ed14b61199b8becb2
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 25, 2026.

Transparency log

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

Download URL kafka_native-0.47.2-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
28e6f516ee1b6e91a6183037d107d642b3e2e03867fd581c6d1132f6c7587187
BLAKE2b-256 checksum
How to use checksums
bf02208f27a524f2f6264c7b57f98a17392b3a213a841a58a1e75644087489c6
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 25, 2026.

Transparency log

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

Download URL kafka_native-0.47.2-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
1d803cfbd92a8a2f982f05a1546d7adf92c4c08925424bf6fcce04d9b54c0473
BLAKE2b-256 checksum
How to use checksums
444a48e881975253dc1915e611e5647cb75cd8263d3e70d0dff4c5e89dd6cd7f
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 25, 2026.

Transparency log

Security for kafka-native 0.47.2

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.2.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 25, 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