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.46.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.46.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.46.2
File Size Uploaded Provenance Actions
kafka_native-0.46.2.tar.gz 545.4 kB With provenance Details for kafka_native-0.46.2.tar.gz

Built distributions (wheels)

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

Total release size: 14.8 MB

Release files / kafka_native-0.46.2.tar.gz

Download URL kafka_native-0.46.2.tar.gz
Size 545.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e16d2c8663c6fb84e85dc5b4af265a4046d5084c726f7bab44e5ceee9c2e6a6e
BLAKE2b-256 checksum
How to use checksums
980ab049f4d7b7a288a6ab05805b673642263dce5dcde26327890c9b4bafeebe
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 24, 2026.

Transparency log

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

Download URL kafka_native-0.46.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
7915e4dc4172ca0679f4468ed2a7b0c2e4b14234b1200086166382cf7be02a33
BLAKE2b-256 checksum
How to use checksums
4479a706f1fd31df1b586adb503eb3bb4edb2a0939094554a95ce696fe87d343
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 24, 2026.

Transparency log

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

Download URL kafka_native-0.46.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
f3dcb0b7e91c85d274be93ce0f9abfdd28f358572a5e8a1426491a3f57f831f8
BLAKE2b-256 checksum
How to use checksums
b208eafad726f2a5d730f4083592443cd022bb154f6b8090220ec46b38e41357
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 24, 2026.

Transparency log

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

Download URL kafka_native-0.46.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
4ca23c36ff01dcf662bcab123b39b0424ee09797127f11a1750a8c46329767ec
BLAKE2b-256 checksum
How to use checksums
df923ce2c91dfbcfc24875dd2fd8590453f4d771a592903c7892c249090b33f2
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 24, 2026.

Transparency log

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

Download URL kafka_native-0.46.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
1e10d59a9e2cca0592be40ea2142a6c1f9d28004d3be201042f9e35f63da668f
BLAKE2b-256 checksum
How to use checksums
a1854ec91b0a458569eabcffe4f78ee7c1043dd8a12fbddd94463d69dfa239b5
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 24, 2026.

Transparency log

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

Download URL kafka_native-0.46.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
6801e832f02c2499cd49a9eeff397b6a967404147e9581e1e514c3c2ad5d474c
BLAKE2b-256 checksum
How to use checksums
65004fa351510e0fa987d4aaf74d3f33728c3b3af52e47c3be472c7e32495f43
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 24, 2026.

Transparency log

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

Download URL kafka_native-0.46.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
10080af628af0cf32cce5b0d9f1bc553faab97b8555f4c17cb056032e6aa61fd
BLAKE2b-256 checksum
How to use checksums
d796439f66fc810d50a2ff7ea17fa0b9d66bf00cde776f43b3a976a7e830bd30
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 24, 2026.

Transparency log

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

Download URL kafka_native-0.46.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
f08343376fb8f6bca29bc30c1000557ebc162e9f32f5589838b848059b5cb287
BLAKE2b-256 checksum
How to use checksums
391f3a2f639a1824501991c9ec63aa8a903ec88dc23d2124c81dda15a0adcb73
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 24, 2026.

Transparency log

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

Download URL kafka_native-0.46.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
19d4362a6718a70a9bfee96a47bbee758cd9da1e6a4b9f505b8ce897ebbcb87d
BLAKE2b-256 checksum
How to use checksums
1cbe698619a2835ce0f11596816b8005ba828216a1364f6fcd589e13b0b3ff6f
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 24, 2026.

Transparency log

Security for kafka-native 0.46.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.46.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 24, 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