Skip to main content

Redis Protocol implemented by python

Project description

https://badge.fury.io/py/redis_protocol.png https://travis-ci.org/youngking/redis_protocol.png?branch=master https://pypip.in/d/redis_protocol/badge.png

Redis Protocol implemented by python

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page