jonathanslenders / asyncio-redis

Redis client for Python asyncio (PEP 3156)
http://asyncio-redis.readthedocs.org/
Other
552 stars 74 forks source link

Adding parser for InfoReply and ClientListReply #116

Open soonum opened 6 years ago

soonum commented 6 years ago

Hi there,

I've a need for handling data contained in InfoReply object. Since the parser is on the TODO list, I wish to implement it. I also took the time to implement a parser for ClientListReply object.

These are naive parsers, all of the value are displayed as bytes string (no attempts of type conversion). The data structures are pretty straight forward:

I make this Pull Request to discuss the implementation of these parsers, thus if you have any suggestion about it (since this implementation will do the job for my project), I'll be pleased to modifiy it. Naturally, the tests will be written once the design has been validated.

Cheers,