Redis Protocol implemented by python
Project description
Redis Protocol implemented by python
Free software: BSD license
Documentation: http://redis_protocol.rtfd.org.
Usage
This is the protocol implemented followed by redis protocol specification. I had used it in my redis_proxy project.
>>> from redis_protocol import decode, encode >>> encode("ping") # encode a request ... '*1\r\n$4\r\nping\r\n' >>> decode('*1\r\n$4\r\nping\r\n') # decode a request body ... ["ping"] >>> decode("$6\r\nfoobar\r\n") # decode a response ... "foobar"
History
0.0.1 (2013-08-11)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redis_protocol-0.0.1.tar.gz
(4.8 kB
view hashes)