All Projects → gmr → aiorabbit

gmr / aiorabbit

Licence: BSD-3-Clause License
An AsyncIO RabbitMQ client for Python 3

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to aiorabbit

tomodachi
💻 Microservice library / framework using Python's asyncio event loop with full support for HTTP + WebSockets, AWS SNS+SQS, RabbitMQ / AMQP, middleware, etc. Extendable for GraphQL, protobuf, gRPC, among other technologies.
Stars: ✭ 170 (+844.44%)
Mutual labels:  rabbitmq, asyncio
Aio Pika
AMQP 0.9 client designed for asyncio and humans.
Stars: ✭ 611 (+3294.44%)
Mutual labels:  rabbitmq, asyncio
waspy
WASP framework for Python
Stars: ✭ 43 (+138.89%)
Mutual labels:  rabbitmq, asyncio
Aiormq
Pure python AMQP 0.9.1 asynchronous client library
Stars: ✭ 112 (+522.22%)
Mutual labels:  rabbitmq, asyncio
aioamqp consumer
consumer/producer/rpc library built over aioamqp
Stars: ✭ 36 (+100%)
Mutual labels:  rabbitmq, asyncio
ansible-rabbitmq
Ansible role to install and configure RabbitMQ server.
Stars: ✭ 22 (+22.22%)
Mutual labels:  rabbitmq
Sharingan
We will try to find your visible basic footprint from social media as much as possible - 😤 more sites is comming soon
Stars: ✭ 13 (-27.78%)
Mutual labels:  asyncio
fastapi-boilerplate
FastAPI boilerplate for real world production
Stars: ✭ 145 (+705.56%)
Mutual labels:  asyncio
ponos
An opinionated queue based worker server for node.
Stars: ✭ 85 (+372.22%)
Mutual labels:  rabbitmq
findssh
Asyncio concurrent Python finds SSH servers (or other services with open ports) on an IPv4 subnet, WITHOUT NMAP
Stars: ✭ 36 (+100%)
Mutual labels:  asyncio
smart-cloud
基于springboot && springcloud的脚手架,支持服务合并部署与拆分部署、接口加解密签名、日志数据 脱敏、接口数据mock、接口文档自动生成、请求幂等校验、接口日志&&sql日志切面打印、分表分库分布式事务、国际化语言等
Stars: ✭ 167 (+827.78%)
Mutual labels:  rabbitmq
spring-boot-rabbitMQ
Spring Boot集成rabbitMQ实现消息推送
Stars: ✭ 24 (+33.33%)
Mutual labels:  rabbitmq
automate-home
Yet another python home automation (iot) project. Because a smart light is more than just on or off.
Stars: ✭ 59 (+227.78%)
Mutual labels:  asyncio
iris
Open Source Photos Platform Powered by PyTorch
Stars: ✭ 135 (+650%)
Mutual labels:  rabbitmq
rails-microservices-book
A guide to building distributed Ruby on Rails applications using Protocol Buffers, NATS and RabbitMQ
Stars: ✭ 23 (+27.78%)
Mutual labels:  rabbitmq
core
Microservice abstract class
Stars: ✭ 37 (+105.56%)
Mutual labels:  rabbitmq
aiodogstatsd
An asyncio-based client for sending metrics to StatsD with support of DogStatsD extension
Stars: ✭ 26 (+44.44%)
Mutual labels:  asyncio
rigor
HTTP-based DSL for for validating RESTful APIs
Stars: ✭ 65 (+261.11%)
Mutual labels:  asyncio
wot-py
WoTPy is an experimental implementation of a W3C Web of Things runtime
Stars: ✭ 22 (+22.22%)
Mutual labels:  asyncio
Hemuer
An AI Tool to record expressions of users as they watch a video and then visualize the funniest parts of it!
Stars: ✭ 22 (+22.22%)
Mutual labels:  rabbitmq

aiorabbit

aiorabbit is an opinionated AsyncIO RabbitMQ client for Python 3 (3.7+).

Version Build Status Coverage License

Project Goals

  • To create a simple, robust RabbitMQ client library for AsyncIO development in Python 3.

  • To make use of new features and capabilities in Python 3.7+.

  • Remove some complexity in using an AMQP client by:
    • Abstracting away the AMQP channel and use it only as a protocol coordination mechanism inside the client.
    • Remove the nowait keyword to ensure a single round-trip pattern of behavior for client usage.
  • To automatically reconnect when a connection is closed due to an AMQP exception/error.

    When such a behavior is encountered, the exception is raised, but the client continues to operate if the user catches and logs the error.

  • To automatically create a new channel when the channel is closed due to an AMQP exception/error.

    When such a behavior is encountered, the exception is raised, but the client continues to operate if the user catches and logs the error.

  • To ensure correctness of API usage, including values passed to RabbitMQ in AMQ method calls.

Example Use

The following demonstrates an example of using the library to publish a message with publisher confirmations enabled:

import asyncio
import datetime
import uuid

import aiorabbit

RABBITMQ_URL = 'amqps://guest:guest@localhost:5672/%2f'


async def main():
    async with aiorabbit.connect(RABBITMQ_URL) as client:
        await client.confirm_select()
        if not await client.publish(
                'exchange',
                'routing-key',
                'message-body',
                app_id='example',
                message_id=str(uuid.uuid4()),
                timestamp=datetime.datetime.utcnow()):
            print('Publishing failure')

if __name__ == '__main__':
    asyncio.get_event_loop().run_until_complete(main())

Documentation

http://aiorabbit.readthedocs.org

License

Copyright (c) 2019-2021 Gavin M. Roy All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Python Versions Supported

3.7+

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].