Python Client for Google Cloud Pub/Sub
Project description
Python idiomatic client for Google Cloud Pub / Sub
Quick Start
$ pip install --upgrade google-cloud-pubsub
Authentication
With google-cloud-python we try to make authentication as painless as possible. Check out the Authentication section in our documentation to learn more. You may also find the authentication document shared by all the google-cloud-* libraries to be helpful.
Using the API
Google Cloud Pub/Sub (Pub/Sub API docs) is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications.
See the google-cloud-python API Pub/Sub documentation to learn how to connect to Cloud Pub/Sub using this Client Library.
To get started with this API, you’ll need to create
from google.cloud import pubsub
client = pubsub.Client()
topic = client.topic('topic_name')
topic.create()
topic.publish('this is the message_payload',
attr1='value1', attr2='value2')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for google-cloud-pubsub-0.20.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75faef47138c4201836ccbb0dd62611bf4051187edef720c145a2a404ba08fdb |
|
MD5 | a215f352126ec873d78ecb7efaafcf37 |
|
BLAKE2b-256 | 08ff7f72a9524cb5e8dd62abccb5fd59259e9595c6c76fff13c995887845546b |
Hashes for google_cloud_pubsub-0.20.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e8ded14b4292119ae73820964e49bde9db08923f61ee9eef0cd2e8d50febb6 |
|
MD5 | cee2a6be98ffa9afb1e1aaac6a543f29 |
|
BLAKE2b-256 | dfce9833b2355dff2622c98044b9e5175d1b5f20eace06e2c36608857a54cdd9 |