Registry / gcp / grpc-google-pubsub-v1

grpc-google-pubsub-v1

JSON →
library0.11.1pypypiunverified

Generated gRPC and protobuf definitions for the Google Cloud Pub/Sub V1 API. This library contains only the low-level gRPC stubs, not the higher-level google-cloud-pubsub client. Version 0.11.1 is the latest (as of early 2025) but this package is considered legacy; users should migrate to google-cloud-pubsub which bundles the proto stubs. Release cadence is irregular.

pip install grpc-google-pubsub-v1==0.11.1
INSTALL
IMPORT
SIG · GRPC-GOOGLE-PUBSUB
G
grpc-google-pubsub-v1
gcppythonv0.11.1
Install
5.3s avg
Import
Disk
45MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.11.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 48.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.3s · import 0.000s · 46MB
45MB installed
● package 45MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

publisher_pb2_grpc
from google.pubsub_v1 import publisher_pb2_grpc
from google.pubsub.v1 import publisher_pb2_grpc

Minimal example to create a gRPC stub. Note: this package only provides protos; do not call gRPC methods without a running Pub/Sub emulator or service.

import grpc from google.pubsub.v1 import publisher_pb2_grpc, publisher_pb2 # Create channel and stub channel = grpc.insecure_channel('localhost:8080') stub = publisher_pb2_grpc.PublisherStub(channel) # Build request (requires project/topic set via env or code) request = publisher_pb2.PublishRequest(topic='projects/my-project/topics/my-topic') print('Stub created successfully')
Debug
Known issues
deprecatedgrpc-google-pubsub-v1 is deprecated. Use google-cloud-pubsub instead for a maintained, higher-level API.
fix
Run: pip install google-cloud-pubsub and import from google.cloud import pubsub_v1.
affects: all
gotchaPackage name has no official 'google-' prefix on PyPI. Users often try 'google-grpc-pubsub-v1' which does not exist.
fix
Install exactly: pip install grpc-google-pubsub-v1
affects: all
gotchaThis package does NOT contain the full Pub/Sub client; it only has gRPC stubs and protobuf message classes. You cannot call publish() or subscribe() directly.
fix
Import protos from google.pubsub.v1 and create your own gRPC stubs. For convenience, upgrade to google-cloud-pubsub.
affects: all
Upgrade
Version history
0.11.1latest on PyPI · released Sep 30, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
30
OpenAI (training)
2
Resources
grpc-google-pubsub-v1 — pip install grpc-google-pubsub-v1 · libregistry