.. Rele documentation master file, created by sphinx-quickstart on Wed Jun 5 14:19:08 2019. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Relé's documentation! ================================ Release v\ |version|. (`Installation `_) .. image:: https://travis-ci.org/mercadona/rele.svg?branch=master :target: https://travis-ci.org/mercadona/rele .. image:: https://img.shields.io/badge/license-Apache%202-blue.svg :target: https://github.com/mercadona/rele/blob/master/LICENSE ------------------- **Relé** makes integration with Google PubSub easier and is ready to integrate seamlessly into any Django project. 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. Features ________ Out of the box, Relé includes 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 __________________ .. code:: python # 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") # Publish to the topic import rele rele.publish(topic='photo-uploaded', data={'customer_id': 123}) Install _______ Relé supports Python 3.6+ and installing via ``pip`` .. code:: $ pip install rele or with Django integration .. code:: $ pip install rele[django,flask] User Guides ___________ .. toctree:: :maxdepth: 1 guides/basics guides/django guides/flask guides/filters guides/emulator guides/unrecoverable_middleware Configuration _____________ Here you can see the full list of the settings options for your deployment of Relé. .. toctree:: :maxdepth: 2 settings API Docs ________ This is the part of documentation that details the inner workings of Relé. If you are looking for information on a specific function, class or method, this part of the documentation is for you. .. toctree:: :maxdepth: 2 reference Changelog --------- Here you can see the full list of changes between each Relé release. .. toctree:: :maxdepth: 1 changelog Project Info ____________ .. toctree:: :maxdepth: 1 Source Code Contributing Code of Conduct License Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`