Metadata-Version: 2.1
Name: rabbitbus
Version: 0.0.5
Summary: RabbitMQ app framework
Home-page: http://gitlab.rednvd.ru/krylov/rabbitbus
Author: KrylovYS
Author-email: krylov.ys@malltech.ru
License: MIT
Description: 
        # RabbitBus
        
        Feel RabbitMQ like HTTP
        
          - Custom CorrelationManagers
          - Regexp roures
        
        
        ### Installation
        
        RabbitBus requires Python 3.6 >, aioamqp.
        
        Install the dependencies and library.
        
        ```sh
        $ pip install git+https://github.com/shadrus/rabbitbus.git
        ```
        
        Example:
        
        ```python
        import asyncio
        import logging
        from rabbitbus.manager import DatabusApp, Configuration
        from rabbitbus.requests import AmqpRequest
        from rabbitbus.responses import AckResponse
        
        logger = logging.getLogger()
        logger.setLevel(logging.DEBUG)
        formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
        ch = logging.StreamHandler()
        ch.setLevel(logging.DEBUG)
        ch.setFormatter(formatter)
        logger.addHandler(ch)
        
        async def my_view(request: AmqpRequest):
            # Write your code here
            return AckResponse()
        
        def serve():
            loop = asyncio.get_event_loop()
            # Inherit from CorrelationManager for custom correlation storages
            app = DatabusApp(conf=Configuration())
            app.add_route(r'^CASH_REGISTER_EQUIPMENTS[a-zA-Z_]{4}$', my_view, as_list=True)
            app.start(loop)
        
        
        if __name__ == '__main__':
            serve()
        ```
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
