gmr / rabbitpy

A pure python, thread-safe, minimalistic and pythonic RabbitMQ client library
http://rabbitpy.readthedocs.org
BSD 3-Clause "New" or "Revised" License
242 stars 58 forks source link

feat: add support for custom client properties #142

Open jamesrusso opened 3 months ago

jamesrusso commented 3 months ago

Here is a quick PR which adds support for specifying the client_properties when creating the connection (in addition to providing the URL). This enables you to set certain properties (like connection_name) so that it will appear in the management interface on RabbitMQ.

Wasn't sure exactly how to test this, but I'll look at it some more if this seems like it is a good addition to the project.

Should be a non-breaking change with the default provided.

gmr commented 1 month ago

I have the same concern with this as #138, I wonder if it'd be better to allow for overwriting specific properties instead of the whole dict.