- Add :meth:`pika.methods.publish` to publish messages from the context of a consumer callback.
- Pass a
state
object with aconnection
attribute to the consumer callback, instead of aconnection
object. Mixins can set a__safe__
class attribute to list attributes that can be used safely in the consumer callback. These attributes are added to thestate
object. - Log debug messages when publishing, consuming and acknowledging messages.
First release.