skillfed

google-cloud-pubsub

Google Cloud Pub/Sub API client library

google-cloud-pubsub Permissive license Apache-2.0 Active 5,370 v2.39.1 released

Install

google-cloud-pubsub on PyPI

pip

pip install google-cloud-pubsub

uv

uv add google-cloud-pubsub

poetry

poetry add google-cloud-pubsub

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 9 — google-api-core, google-auth, grpcio, proto-plus, protobuf, grpc-google-iam-v1, grpcio-status, opentelemetry-api, opentelemetry-sdk
Maintenance actively maintained — 7 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: google_cloud_pubsub-2.39.1-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet

About google-cloud-pubsub

from the package's own PyPI description — quoted content, verbatim

Python Client for Cloud Pub/Sub

|stable| |pypi| |versions|

Cloud Pub/Sub_: Provides reliable, many-to-many, asynchronous messaging between applications.

  • Client Library Documentation_
  • Product Documentation_

.. |stable| image:: https://img.shields.io/badge/support-stable-gold.svg :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-pubsub.svg :target: https://pypi.org/project/google-cloud-pubsub/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-pubsub.svg :target: https://pypi.org/project/google-cloud-pubsub/ .. _Cloud Pub/Sub: https://cloud.google.com/pubsub/docs .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/pubsub/latest/summary_overview .. _Product Documentation: https://cloud.google.com/pubsub/docs

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project._
  2. Enable billing for your project._
  3. Enable the Cloud Pub/Sub._
  4. Set up Authentication._

.....

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Python client library for Google Cloud Pub/Sub, enabling reliable asynchronous publish-subscribe messaging between applications via Google Cloud infrastructure.

Low install friction with a pure-wheel distribution. Active maintenance (release 7 days ago) and 5370 repository stars indicate solid project health. Nine runtime dependencies are all Google-authored or standard observability libraries (opentelemetry), suggesting well-managed integration.

Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you may use, modify, and distribute this code provided you include the license notice and state changes.

Usage

pip install google-cloud-pubsub

from google.cloud import pubsub_v1
import os

publisher = pubsub_v1.PublisherClient()
topic_name = f'projects/{os.getenv("GOOGLE_CLOUD_PROJECT")}/topics/MY_TOPIC'
future = publisher.publish(topic_name, b'Hello World')
future.result()

Requires Python >= 3.10; Google Cloud authentication credentials must be configured (via GOOGLE_APPLICATION_CREDENTIALS environment variable or Application Default Credentials).

Verdict: Production-ready Google-authored library with active maintenance, no known vulnerabilities, and low install friction. Suitable for applications requiring reliable cloud-native pub/sub messaging. Permissive Apache 2.0 license poses no adoption barriers.

Needs verification

  • Whether the nine runtime dependencies introduce any transitive security or maintenance concerns beyond what OSV reports.
  • Performance characteristics and throughput limits relative to typical use cases.
  • Compatibility guarantees with older Google Cloud infrastructure versions.
google cloud pubsub python clientpublish subscribe messaging gcpasynchronous message queue google cloudcloud pubsub publisher subscribergoogle cloud messaging apidistributed event streaming gcptopic subscription messaging

Similar packages