Skip to main content
Pre-release

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

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.6+ 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.0b1.tar.gz (207.6 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.0b1-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rele-1.17.0b1.tar.gz
Algorithm Hash digest
SHA256 4f6f85d18e48f21a414ac817d4122f08951fdea32cf6ebf156fa027c5a1d767d
MD5 bf907c8df948427e61b67b99fdc78f42
BLAKE2b-256 ed133d1ae1d74036694d2e906c60372a08c493337890456b95bfe40f7af3af4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for rele-1.17.0b1.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.0b1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for rele-1.17.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 7bd58197117112f2cd889297eaf1d40db46687b51458381548570c4b2b543e46
MD5 a13c11c792286167bc24cd5278926b81
BLAKE2b-256 7dac2dc0d3c18f14734b7a0235840ac70f98780818ef3921b196357853d4bc29

See more details on using hashes here.

Provenance

The following attestation bundles were made for rele-1.17.0b1-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

1.17.0

2 files

This release

1.17.0b1 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