Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Latest commit

 

History

History
36 lines (22 loc) · 744 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 744 Bytes

Cloud Pub/Sub samples for Python

Overview

This repository contains several samples for Cloud Pub/Sub service with Python.

  • appengine-push

    A sample for push subscription running on Google App Engine.

  • cmdline-pull

    A command line sample for pull subscription.

  • gce-cmdline-publisher

    A Python command-line script that publishes to a topic using data from a large traffic sensor dataset.

Run tests

Here are instructions to run the tests. You need a cloud project with Cloud Pub/Sub enabled.

$ pip install tox
$ export GOOGLE_APPLICATION_CREDENTIALS=your-service-account-json-file
$ export TEST_PROJECT_ID={YOUR_PROJECT_ID}
$ tox

Licensing

See LICENSE