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.2.tar.gz (222.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.2-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rele-1.17.2.tar.gz
  • Upload date:
  • Size: 222.6 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.2.tar.gz
Algorithm Hash digest
SHA256 2bfdbc0fed1421964ca44aaa5964e0038f2bc220ebce4aeb57d4b228f4944321
MD5 a4a41f0af19fed7a97b8ea136951a191
BLAKE2b-256 ca538c3a5354a369c4851fb19e469d7e7edd473a3645b942078b9b560222f7e7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: rele-1.17.2-py3-none-any.whl
  • Upload date:
  • Size: 30.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 778ffc00cb5516c51d3cda96c2f0e1a07fa36653d12aa67138d96c0880bfb23f
MD5 404f58c4d729abef18f73346917cf0e4
BLAKE2b-256 5f002e15a515db157e5d2399ff14398a91b7665af12873703592280c76b3ebfc

See more details on using hashes here.

Provenance

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

This release

1.17.2 This release

2 files

1.17.1

2 files

1.17.0

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