CoolAMQP ======== [](http://coolamqp.readthedocs.io/en/latest/?badge=latest) [](https://badge.fury.io/py/CoolAMQP) [](https://travis-ci.org/smok-serwis/coolamqp) [](https://codeclimate.com/github/smok-serwis/coolamqp) [](https://codeclimate.com/github/smok-serwis/coolamqp/coverage) []() []() []() A **magical** AMQP client, that uses **heavy sorcery** to achieve speeds that other AMQP clients cannot even hope to match. Documentation (WIP) is available at [Read the Docs](http://coolamqp.readthedocs.io/). tl;dr - [this](coolamqp/framing/definitions.py) is **machine-generated** compile-time. [this](coolamqp/framing/compilation/content_property.py) **generates classes run-time**, and there are memoryviews **_everywhere_**. This is borderline absurd. CoolAMQP is not a direct AMQP client - it also handles reconnections, transactional sending, and so on, mostly via Futures. This means it has a certain opinion on how to handle AMQP, but you can feel the spirit of AMQP underneath. The project is actively maintained and used in a commercial project. Tests can run either on Vagrant (Vagrantfile attached) or Travis CI, and run against RabbitMQ. CoolAMQP won't touch your messages. It's your bag of bytes, and your properties. Enjoy! _Watch out for memoryviews!_ ## Notes Assertions are sprinkled throughout the code. You may wish to run with optimizations enabled if you need every CPU cycle you can get. **v0.8x** series has unstable API. It probably won't change much **v0.9x** series will have a stable API. ## Current limitations * channel flow mechanism is not supported (#11) * _confirm=True_ is not available if you're not RabbitMQ (#8) * no Windows support (#9) ## What's new * v0.89: * Events are no longer timestamped by CoolAMQP, it's your job now * You can delete queues (_Cluster.delete_queue_) * Race condition _Connection.start_ fixed * Queue can accept _bytes_ as name * Consumer will set _cancelled_ to _True_ if [Consumer Cancel Notification](https://www.rabbitmq.com/consumer-cancel.html) is received * You can register callbacks for: * Consumer being cancelled for any reason * Consumer being cancelled with a CCN * v0.88: * Cluster.start will RuntimeError if called more than once * Cluster.shutdown will RuntimeError if called without .start * Warning with content list is shorter