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.45.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.45.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.45.0
File Size Uploaded Provenance Actions
kafka_native-0.45.0.tar.gz 537.4 kB With provenance Details for kafka_native-0.45.0.tar.gz

Built distributions (wheels)

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

Total release size: 14.7 MB

Release files / kafka_native-0.45.0.tar.gz

Download URL kafka_native-0.45.0.tar.gz
Size 537.4 kB
Tags Source
SHA-256 checksum
How to use checksums
089af0bf638b41840b76b7cff8b9972e05a46c6865f2598c58f0a650c2d7d305
BLAKE2b-256 checksum
How to use checksums
bb2e768fb6d8303756ef2d4f60b074f8548200e789e9ec02d24cbc08791acf59
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 23, 2026.

Transparency log

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

Download URL kafka_native-0.45.0-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
724df5fbd6d24bc6dd4f27d2dcddb4d766ec77697e408f87dbf6d47a34d7bb8a
BLAKE2b-256 checksum
How to use checksums
bcd1a1e1efaafc208459a54f605de459727c93a2cbd85544713e0877e9c90d8f
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 23, 2026.

Transparency log

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

Download URL kafka_native-0.45.0-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
b57ac92d4dfa4ad53c38d0df1dcd3e872ddd4e3a5615e2c96a0b7450491b4a7a
BLAKE2b-256 checksum
How to use checksums
0aaa53ef3fe81c380b2edad4bee9c0567a7e13d900e5b5f4704d6a1ea5140e45
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 23, 2026.

Transparency log

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

Download URL kafka_native-0.45.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
cf18db201f65d396844d971b7f84ba2d02ec4462ba7bc4474a7cc22cbe709e18
BLAKE2b-256 checksum
How to use checksums
87e63871a99088092e0af7db6602fd70c584e50458cd6b6513da2a6749624f39
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 23, 2026.

Transparency log

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

Download URL kafka_native-0.45.0-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
6ae7a1ff29304cf0409f2b4b3dc4f8dbe9067b8cd9e40df546d1620b7e9c86e6
BLAKE2b-256 checksum
How to use checksums
b8790607468269e610beb4d40ddf4bc9ffb3c7ea8a0f1845874bd4906c530a33
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 23, 2026.

Transparency log

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

Download URL kafka_native-0.45.0-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
7e10a18798dce9424252fa6444451311f840c7ee7157afaeaaa3724335d148c7
BLAKE2b-256 checksum
How to use checksums
9d08beb46a9b78a15e223a13699a3eb6c91e7e65d24e3bd19d543765ba5e03b8
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 23, 2026.

Transparency log

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

Download URL kafka_native-0.45.0-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
64d33ef61403e010e54881761d6899c5f91b88d000684badc3d67358067d6531
BLAKE2b-256 checksum
How to use checksums
15bb25d392b6ce0c9397515f2b68005efe12421d83289bcf48b4cbbe90b579b5
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 23, 2026.

Transparency log

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

Download URL kafka_native-0.45.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
824442f6208bed5da840abfb457f57f6ce7eaa3b43c6abb3ffdedf5e10222529
BLAKE2b-256 checksum
How to use checksums
af53d048718e72a4af9d302a708e74c74426d0d3af142aeb163744242f6c3f5c
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 23, 2026.

Transparency log

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

Download URL kafka_native-0.45.0-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
008e0de4fd2b8347d1eccca8f0c6f2a11846e570e6e772f5c7eb6a17e1295b51
BLAKE2b-256 checksum
How to use checksums
037cd441c7f012ea60967a3db4cb563f7e3b0184e85fc632db10bf4656e8f065
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 23, 2026.

Transparency log

Security for kafka-native 0.45.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.45.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 23, 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