Plugin for dbreak to handle Redis connections
Project description
dbreak-redis
A plugin for dbreak that allows it to work with Redis objects.
Installation
Install from PyPi using pip:
pip install dbreak-redis
Usage
There's no need to import the plugin separately, just pass a Redis object to dbreak.show_console().
import redis
import dbreak
# Set up a localhost Redis connection
# This assumes you've got a Redis database running
connection = redis.Redis()
# Pause execution and enter the console
dbreak.start_console(connection)
You can use most valid Redis commands:
db[0]> set mykey myvalue
True
db[0]> get mykey
b'myvalue'
Use single or double quotes if you need to set a value with whitespace:
db[0]> set mykey "This is my value"
True
db[0]> get mykey
b'This is my value'
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
dbreak-redis-0.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for dbreak_redis-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 982dff823ef53407e428c4ee35c8978f76356d89014ec7da38249f1530d4f25d |
|
MD5 | e71eddc5132450a02955f36515a97f22 |
|
BLAKE2b-256 | 8b7ceef0041ac5b8ddc727afafe8e437e34cac632350def16fa182188bc3e81c |