Skip to main content

Relé makes integration with Google PubSub straightforward and easy.

Build Status Read the Docs Code Coverage PyPI - Python Version PyPI - Downloads

Motivation and Features

The Publish-Subscribe pattern and specifically the Google Cloud Pub/Sub library are very powerful tools but you can easily cut your fingers on it. Relé makes integration seamless by providing Publisher, Subscriber and Worker classes with the following features:

  • Powerful Publishing API
  • Highly Scalable Worker
  • Intuitive Subscription Management
  • Easily Extensible Middleware
  • Ready to go Django/Flask integration
  • CLI
  • And much more!

What it looks like

# Publish to the topic
import rele

rele.publish(topic='photo-uploaded', data={'customer_id': 123})

# Subscribe to the Pub/Sub topic
from rele import sub

@sub(topic='photo-uploaded')
def photo_uploaded(data, **kwargs):
    print(f"Customer {data['customer_id']} has uploaded an image")

What's in the name

"Relé" is Spanish for relay, a technology that has played a key role in history in the evolution of communication and electrical technology, including the telegraph, telephone, electricity transmission, and transistors.

Install

Relé supports Python 3.10+ and installing via pip

pip install rele

or with Django integration

pip install rele[django]

or with Flask integration

pip install rele[flask]

Quickstart

Please see our documentation to get started.

You can also read more about it here


Running Tests

Does the code actually work?

  make test

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rele-1.17.0.tar.gz (212.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rele-1.17.0-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file rele-1.17.0.tar.gz.

File metadata

  • Download URL: rele-1.17.0.tar.gz
  • Upload date:
  • Size: 212.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rele-1.17.0.tar.gz
Algorithm Hash digest
SHA256 b7bb918b4918478ec6015aa48e8671debd77ba15ed21af4783b1bd4816430a9d
MD5 76e7c4c403121e1675e765503b1ab9fa
BLAKE2b-256 515b21c04067de35cf36dca56df77be5b01a09ba56f26eac7aa0b03b455f7f14

See more details on using hashes here.

Provenance

The following attestation bundles were made for rele-1.17.0.tar.gz:

Publisher: release-please.yml on mercadona/rele

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rele-1.17.0-py3-none-any.whl.

File metadata

  • Download URL: rele-1.17.0-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rele-1.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ead7febcd09db26b66e8558d10027b458b4b14fcf37912b58383ec47c10fbe39
MD5 525b8932925ec4331a916f8677c3ce8f
BLAKE2b-256 270a46915f1e7180639b1a9db1df360b3e63062377a3867a91aa1b3a308363d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for rele-1.17.0-py3-none-any.whl:

Publisher: release-please.yml on mercadona/rele

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.17.2

2 files

1.17.1

2 files

This release

1.17.0 This release

2 files

1.16.0

1 file

1.15.3

1 file

1.15.2

1 file

1.15.1

1 file

1.15.0

1 file

1.14.0

1 file

1.13.0

1 file

1.12.0

1 file

1.11.0

1 file

1.10.0

1 file

1.9.0

1 file

1.8.0

1 file

1.7.0

1 file

1.6.0

1 file

1.5.0

1 file

1.4.1

1 file

1.4.0

1 file

1.3.0

1 file

1.2.0

1 file

1.1.1

1 file

1.1.0

1 file

1.0.0

1 file

0.14.0

1 file

0.13.0

1 file

0.12.0

1 file

0.11.0

1 file

0.10.0

1 file

0.9.1

1 file

0.9.0

1 file

0.8.1

1 file

0.8.0

1 file

0.7.0

1 file

0.6.0

1 file

0.5.0

1 file

0.4.1

1 file

0.4.0

1 file

0.3.1

1 file

0.3.0

1 file

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