Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Google Pubsub Adapter

This Adapter is based on Django and provides a way to publish messages to Google Pubsub.

It is meant to be used with Herbie.

The package already provides a Django app that just needs to be registered in the main Django app using Herbie.

Installation

  1. Run the following
    pip install herbie-google-pubsub-adapter

or add it to your app requirements.txt and update them running:

    pip install -r requirements.txt
  1. Add the adapter App to Django Installed Apllications:
    INSTALLED_APPS = [
        ...
        'google_pubsub_adapter.apps.HerbieGooglePubsubAdapterConfig',
        ...
    ]
  1. Add your Google Cloud Pubsub Credentials to the django settings file:
GCLOUD_PUBSUB_PROJECT_ID='pubsub_project_id'
  1. Create the Topics according to the Business Schemas
python manage.py init_pubsub

An example Django application using this adapter can be found at the Herbie Sandbox repository.

Developing/Testing

If you would like to further improve this package you'll need to install the dev/test requirmeents.

To to this run in your virtual environment

    pip install -e .[tests]

This will install the needed packages (e.g: pytest) to run/test locally the package

Black Formatter

This package uses Black as a code formatter. You should run it before pushing the code as the CI pipeline checks against it.

    black --line-length 119 .

Metadata

Release files for herbie-google-pubsub-adapter 1.0b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for herbie-google-pubsub-adapter 1.0b1
File Size Uploaded Provenance Actions
herbie-google-pubsub-adapter-1.0b1.tar.gz 5.7 kB Without provenance Details for herbie-google-pubsub-adapter-1.0b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for herbie-google-pubsub-adapter 1.0b1
File Interpreter ABI Platform Actions
herbie_google_pubsub_adapter-1.0b1-py3-none-any.whl Python 3 none any Details for herbie_google_pubsub_adapter-1.0b1-py3-none-any.whl

Total release size: 14.0 kB

Release files / herbie-google-pubsub-adapter-1.0b1.tar.gz

Download URL herbie-google-pubsub-adapter-1.0b1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
46f9aba424cfa6f3b37f5233ea9d190f5aee66e7dacb3bb6e18049108e4ce5a4
BLAKE2b-256 checksum
How to use checksums
a501a01ad032167cf0f9b5479863db31f1ff52ba5552d3f3313ca7a54a2f1f6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Release files / herbie_google_pubsub_adapter-1.0b1-py3-none-any.whl

Download URL herbie_google_pubsub_adapter-1.0b1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e2e8558677096065ab870f8ec59dc6420b33f256d095309616b2c06a857b99a
BLAKE2b-256 checksum
How to use checksums
bdd7e41debe9f49de51956de13fe32f2a9db4bce1d257e2e174e4f5ac0addacd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Security for herbie-google-pubsub-adapter 1.0b1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page