Relé makes integration with Google PubSub straightforward and easy.
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
Metadata
Release files for rele-les-transformations 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rele-les-transformations-1.2.0.tar.gz | 22.6 kB | Without provenance | Details for rele-les-transformations-1.2.0.tar.gz |
Release files / rele-les-transformations-1.2.0.tar.gz
| Download URL | rele-les-transformations-1.2.0.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f0313a161cac49a8877746790b34b74458e0aada5139d768611ca9b1909f987
|
|
BLAKE2b-256 checksum How to use checksums |
7c0f34b23d9c93f0e4d08a3c8ec0c06b5065120aec3fdcc887986350b0971f2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
|
Security for rele-les-transformations 1.2.0
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.