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 details)

Uploaded Source

File details

Details for the file redis_protocol-0.0.1.tar.gz.

File metadata

File hashes

Hashes for redis_protocol-0.0.1.tar.gz
Algorithm Hash digest
SHA256 aeb748c684b2ab875f3fd4853ff652642d5db7df2665ed13b4cfacd968803deb
MD5 368e36b809f643f6c6665c3b02a9dc21
BLAKE2b-256 0560b9d3f41405b1057285c628b8e2949ce7c7ae76f04d9ec55364ae1d6d417c

See more details on using hashes here.

Supported by

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