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 details)
File details
Details for the file redis_protocol-0.0.1.tar.gz.
File metadata
- Download URL: redis_protocol-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aeb748c684b2ab875f3fd4853ff652642d5db7df2665ed13b4cfacd968803deb
|
|
| MD5 |
368e36b809f643f6c6665c3b02a9dc21
|
|
| BLAKE2b-256 |
0560b9d3f41405b1057285c628b8e2949ce7c7ae76f04d9ec55364ae1d6d417c
|