CLI tool to setup topics and subscriptions on a PubSub emulator from a definition in a YAML file
Project description
pubsub-emulator-messaging-setup
A small tool to create topics and subscriptions on a PubSub emulator in a simple and quick way.
Usage
Just create a pubsub.yml
file with the list of topics and topic's subscriptions like this one:
topics:
- name: my_topic
subscriptions:
- my_subscription_1
- my_subscription_2
Then run pubsub_emu_setup
:
pubsub_emu_setup
and it will automatically ensure that all the topics and subscriptions are created in the PubSUb emulator.
Starting a PubSub emulator in Docker
Google provides a very convenient image to start a PubSub emulator locally with Docker.
A simple Docker Compose file like the one below is suffice to have a working Pubsub emulator:
version: "3.8"
services:
pubsub_emulator:
image: google/cloud-sdk:emulators
ports:
- 8085:8085
command: |
gcloud beta emulators pubsub start --project=test-project --host-port=0.0.0.0:8085
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
Close
Hashes for pubsub_emulator_messaging_setup-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ffd56539598593f91d111cda5a6390103d1df6d97c65b5b90d6a36b08cde19 |
|
MD5 | e7bf76fbe74e2476a0c3cdbc8b3e8d32 |
|
BLAKE2b-256 | d5366489c6eff1276e0509d4a1d3a97525b5c4af8d33c0f01e1ed8a50aa5cd76 |
Close
Hashes for pubsub_emulator_messaging_setup-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdd21a04ca5585409d186ddb7b117d8de362f5c0bc3d867d39197f1771dbcf11 |
|
MD5 | cba57be8faba02fa2d3d973b6ce2065c |
|
BLAKE2b-256 | a75fe51f109ea8c6fb5ff41912456e21fd9a2f2c289a28034d7c59b4f8eabf67 |