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.42.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.42.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.42.0
File Size Uploaded Provenance Actions
kafka_native-0.42.0.tar.gz 492.4 kB With provenance Details for kafka_native-0.42.0.tar.gz

Built distributions (wheels)

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

Total release size: 14.2 MB

Release files / kafka_native-0.42.0.tar.gz

Download URL kafka_native-0.42.0.tar.gz
Size 492.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c22900882f98b3ad9dc1e13ff2d431dfc34b349dc112d9d01f9e9d79d63fad1d
BLAKE2b-256 checksum
How to use checksums
dbd046e883dbcb47c0363e6f6d0751f8a3d963bbf9eccafeed339b00d3181d7b
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 13, 2026.

Transparency log

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

Download URL kafka_native-0.42.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
e3a71775043d77bd096250aee83e307180619b3c0b6b4930f7adbe733800b70a
BLAKE2b-256 checksum
How to use checksums
ab555a6c99194df9a5114e73976b51a411a0dec3a08e72d379b02f17b43049fc
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 13, 2026.

Transparency log

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

Download URL kafka_native-0.42.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
d056b2cae42124592ba28ab3efb649205eeae68835f42ceb3a352078f60caa7f
BLAKE2b-256 checksum
How to use checksums
adb373bce4ba6290f95f61c36c77b2e15a66ef2a927686c4754c68d546f1b2ed
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 13, 2026.

Transparency log

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

Download URL kafka_native-0.42.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
2ba9db10e4d09faf557bbabfe519b8d215d7f2bac1ba97b385908814b20bd6f9
BLAKE2b-256 checksum
How to use checksums
67fc36d2a4ed8551d1973c00bbe7d8c47a9a9f785d5a876d48b4facb6ceb11cb
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 13, 2026.

Transparency log

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

Download URL kafka_native-0.42.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
08f8b36b120f325c846c799c7b49b7eb72149422d3631dc86d3377f18264710c
BLAKE2b-256 checksum
How to use checksums
6e18e7df45ad419a1f8848d7e7a07dfdc667060cb92e44df23e99ca41185f928
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 13, 2026.

Transparency log

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

Download URL kafka_native-0.42.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
13bcd15cdb8a87f70efac9ae9fd32ba688b28f1d3cb96258a1c7b954e1951899
BLAKE2b-256 checksum
How to use checksums
83ed5bee1e5ce7ae80a474bc1ac225430c1f97ddc7a527b943b537f773237f6b
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 13, 2026.

Transparency log

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

Download URL kafka_native-0.42.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
3688f14ec1a543c672096b7f599d736c967d50d5bd09e9eb78fadab28a0db128
BLAKE2b-256 checksum
How to use checksums
45946339c392c40ec00b1f305e09f53997a5748f74d0a3da5199e6fe1f560e6d
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 13, 2026.

Transparency log

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

Download URL kafka_native-0.42.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
a4a206d218f8dde1d2bd82a21743aa4831a32dd19dfeacb47852c9220c26880c
BLAKE2b-256 checksum
How to use checksums
4d35aafe898d6b355806e024747dfe483a532538246dc2273381501af0a91590
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 13, 2026.

Transparency log

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

Download URL kafka_native-0.42.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
dc4f1aac7e7be65d393e6df9edb0359191d3235e902e9cfe25e1f1646188f909
BLAKE2b-256 checksum
How to use checksums
a71e8d4aa771dea2422c2f2d48cc2327baedc897b31943aa5a36de931c9f19f6
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 13, 2026.

Transparency log

Security for kafka-native 0.42.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.42.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 13, 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