An open API service indexing awesome lists of open source software.

https://github.com/victor141516/redpie


https://github.com/victor141516/redpie

dict python python3 python36 python37 redis

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

          

# Redpie

Use redis just like a Python dictionary

## How to use

### Installation

$ pip install redpie

### Usage

from redpie import Redpie

r = Redpie(db=0, host='localhost', port=6379) # Or just r = Redpie(); 0, localhost and 6379 are defaults

from requests import Session

r.update({
'you can': 'assign basic types',
'and even more complex things': Session
})

>>> print(r['and even more complex things']())