Azure / azure-uamqp-python

AMQP 1.0 client library for Python
MIT License
57 stars 48 forks source link

Investigate AmqpClient accepting a list of str for the desired capabilities #212

Open yunhaoling opened 3 years ago

yunhaoling commented 3 years ago

In the current world, AmqpClient only accepts AMQPValue for the desired capabilities: https://github.com/Azure/azure-uamqp-python/blob/ec32de987dab23985f83a705a74ed34bb66bdcde/uamqp/client.py#L834-L838

However, this means the upper applications have to construct the AMQPString/AMQPSymbol/AMQPArray/AMQPValue by themselves.

It would be nice if we could considering adding the support to accept just a list of string, and we do the conversion internally.