andreimarcu / aamnotifs Goto Github PK
View Code? Open in Web Editor NEWSimple notifications implementation with RabbitMQ using pika.
License: MIT License
Simple notifications implementation with RabbitMQ using pika.
License: MIT License
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 33, in connect
RuntimeError: maximum recursion depth exceeded
If I try to construct a Notifs object with an invalid URL (wrong exchange), I get the following error:
Traceback (most recent call last):
File "aamnotifd.py", line 27, in <module>
n = aamnotifs.Notifs("amqp://{0}:{1}@{2}:{3}/%2F{4}".format(rmqc['user'], rmqc['pass'], rmqc['host'], rmqc['port'], rmqc['vhost']))
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 20, in __init__
self.connect(url)
File "/usr/lib/python2.7/site-packages/aamnotifs/__init__.py", line 29, in connect
self.connect()
TypeError: connect() takes exactly 2 arguments (1 given)
It would be nice if this printed a message that made this easier to debug.
Great little wrapper you have here!
I noticed that the exchange type is topic
.
This could cause unintended issues for someone who might unwittingly use a routing key like *.new_items, if they don't know how topic exchanges work.
I would change it to a direct exchange, but if you need or want it to be a topic exchange, I would put a warning about routing keys in the README.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.