google-cloud-managedkafka
Google Cloud Managedkafka API client library
What it is and what it does
This is Google's official Python client for Managed Service for Apache Kafka on Google Cloud Platform. It wraps the underlying gRPC API with Python-friendly abstractions, letting you create, configure, monitor, and delete Kafka clusters and topics programmatically rather than through the console or CLI.
The library depends on google-api-core, google-auth, grpcio, proto-plus, and protobuf to handle authentication, RPC transport, and protocol buffer serialization. It targets modern Python versions (3.10 and later) and is actively maintained as part of the googleapis/google-cloud-python monorepo. Authentication is required before use—you'll need a Google Cloud project with billing enabled and the Managed Service for Apache Kafka API enabled.
Use it for:
- Automate Kafka cluster provisioning and teardown as part of infrastructure-as-code workflows
- Build monitoring dashboards that query cluster status and metrics via the API
- Manage topic configurations, partitions, and consumer groups programmatically in production
- Integrate Kafka cluster lifecycle management into CI/CD pipelines
- Develop multi-tenant applications that create isolated Kafka clusters on demand
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for Google Cloud's Managed Service for Apache Kafka, enabling programmatic management of Kafka clusters and resources on Google Cloud Platform.
Yes, if you are building on Google Cloud and need to manage Managed Service for Apache Kafka clusters programmatically. The library is actively maintained, has no known vulnerabilities, low install friction, and is the official client for the service. Not relevant if you are using self-hosted Kafka or a different cloud provider's Kafka offering.
Install
google-cloud-managedkafka on PyPI
pip
pip install google-cloud-managedkafkauv
uv add google-cloud-managedkafkapoetry
poetry add google-cloud-managedkafkaInstalling google-cloud-managedkafka
Before you install
Low friction install with active maintenance. Released 53 days ago with recent commits; depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf). Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and note significant changes.
Quickstart
pip install google-cloud-managedkafka
from google.cloud import managedkafka_v1
client = managedkafka_v1.ManagedKafkaClient()
Requires Python >= 3.10. Google Cloud authentication must be configured (via service account, Application Default Credentials, or environment variables) before client instantiation.
Verify before relying
- Specific API methods and resource types supported beyond cluster and resource management
- Whether this library supports all Managed Service for Apache Kafka operations or a subset
- Performance characteristics and rate limits for typical cluster operations
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — google-api-core, google-auth, grpcio, proto-plus, protobuf |
| Maintenance | actively maintained — 53 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 13,854,244/month — #1,262 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_cloud_managedkafka-0.4.1-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-cloud-dataflow-clientProvides a Python client library to manage…
permissive · top 1,000 on PyPI
google-cloud-monitoringPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-resource-managerProvides a Python client for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-functionsPython client library for Google Cloud…
permissive · top 5,000 on PyPI
google-cloud-monitoring-dashboardsPython client library for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-billingProgrammatic access to Google Cloud Platform…
permissive · top 15,000 on PyPI
google-cloud-tasksPython client library for Google Cloud Tasks,…
permissive · top 1,000 on PyPI
kafka-connect-pyA command-line tool and Python client for…
permissive · top 15,000 on PyPI
google-cloud-storagePython client library for Google Cloud Storage…
permissive · top 1,000 on PyPI
matrice-commonmatrice_common provides authentication, RPC…
permissive · top 5,000 on PyPI