benjamin-hodgson / asynqp

An AMQP library for asyncio
MIT License
84 stars 29 forks source link

Ability to pass attributes to declare_queue #2

Closed ralphje closed 9 years ago

ralphje commented 10 years ago

Some extensions require additional arguments for a queue, e.g. message TTL and dead lettering. See for instance https://www.rabbitmq.com/ttl.html. However, Channel.queue_declare does not provide any mechanism to pass these attributes to the underlying spec.QueueDeclare

From ChannelMethodSender it seems that there's the ability to also pass attributes to ExchangeDeclare, QueueBind, QueueUnbind and BasicConsume. Perhaps these dicts should be exposed too.

(There are more specialized arguments that have set defaults in ChannelMethodSender. If possible, these may or may not be useful to expose.)

benjamin-hodgson commented 10 years ago

Thanks for the request. I haven't got around to adding any custom RabbitMQ extensions yet (this library is alpha software!), but I'll prioritise it for you :smiley:

niwinz commented 10 years ago

Would be awesome have "status of the project" section on the documentation :P

benjamin-hodgson commented 9 years ago

Closed by #27