google-cloud-pubsublite
Google Cloud Pubsublite API client library
What it is and what it does
google-cloud-pubsublite is the official Python client for Google Cloud Pub/Sub Lite, a managed messaging service that decouples message producers from consumers. It provides publisher and subscriber APIs to send and receive messages through topics, enabling reliable asynchronous communication between distributed applications.
Pub/Sub Lite differs from standard Google Cloud Pub/Sub by offering partitioned zonal data storage with predefined capacity, making it suitable for workloads with predictable throughput patterns. The library wraps the underlying gRPC API and depends on google-cloud-pubsub, grpcio, and google-api-core to handle authentication, transport, and protocol details. It supports Python 3.8 and later versions.
Use it for:
- Building event-driven architectures where applications publish events to topics and multiple subscribers consume them independently.
- Implementing reliable message queuing for microservices that need decoupled, asynchronous communication.
- Streaming data pipelines where producers and consumers operate at different rates and need buffering.
- Real-time data ingestion systems that require partitioned storage with known capacity planning.
- Integrating with Google Cloud Dataflow or other GCP services for event processing workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for Google Cloud Pub/Sub Lite, providing asynchronous messaging between applications with partitioned zonal data storage and predefined capacity.
Yes. This is the official, actively maintained client for Pub/Sub Lite with low install friction, permissive licensing, no known vulnerabilities, and broad Python version support. Install it if you are building on Google Cloud Pub/Sub Lite; if you need standard Pub/Sub instead, use google-cloud-pubsub. Verify that Pub/Sub Lite's partitioned zonal model and usage caveats fit your workload before committing.
Install
google-cloud-pubsublite on PyPI
pip
pip install google-cloud-pubsubliteuv
uv add google-cloud-pubsublitepoetry
poetry add google-cloud-pubsubliteInstalling google-cloud-pubsublite
Before you install
Low friction installation via pip; actively maintained with recent releases. Depends on standard Google Cloud libraries (google-cloud-pubsub, grpcio, google-api-core) and proto-plus, all widely used and stable.
License in practice
Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install google-cloud-pubsublite
from google.cloud.pubsublite.admin_client import AdminClient
from google.cloud.pubsublite.publisher_client import PublisherClient
admin = AdminClient()
publisher = PublisherClient()
Requires Google Cloud project with Pub/Sub Lite API enabled and authentication configured (service account key or Application Default Credentials).
Verify before relying
- Whether the package supports async/await patterns or only callback-based publishing and subscribing.
- Performance characteristics and throughput limits compared to standard Google Cloud Pub/Sub.
- Whether automatic message batching and flow control are configurable.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — google-cloud-pubsub, grpcio, grpcio-status, overrides, google-api-core, proto-plus |
| Maintenance | actively maintained — 241 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,195,555/month — #2,706 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_cloud_pubsublite-1.13.0-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
ablyAbly is a Python client library for connecting…
permissive · top 5,000 on PyPI
google-cloud-pubsubPython client library for Google Cloud Pub/Sub,…
permissive · top 1,000 on PyPI
solace-pubsubplusSolace Messaging API for Python provides client…
permissive · top 15,000 on PyPI
gcloudProvides Python client libraries for Google…
permissive · top 15,000 on PyPI
broadcasterBroadcaster provides a simple async broadcast…
permissive · top 15,000 on PyPI
google-cloud-bigtablePython client library for reading and writing…
permissive · top 1,000 on PyPI
pubcontrolPublishes messages to multiple endpoints via…
permissive · top 15,000 on PyPI
google-cloud-recommenderPython client library for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-bigquery-loggingPython client library for Google Cloud BigQuery…
permissive · top 15,000 on PyPI
google-cloud-tasksPython client library for Google Cloud Tasks,…
permissive · top 1,000 on PyPI