https://github.com/victor141516/redpie
https://github.com/victor141516/redpie
dict python python3 python36 python37 redis
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/victor141516/redpie
- Owner: victor141516
- Created: 2018-05-22T12:48:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-15T14:54:51.000Z (almost 8 years ago)
- Last Synced: 2025-09-02T06:26:29.068Z (9 months ago)
- Topics: dict, python, python3, python36, python37, redis
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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']())