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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbreak-redis-0.0.1.tar.gz.
File metadata
- Download URL: dbreak-redis-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2701fe7f5ff673480c08e387081f96268b12323c74058b78a16df1b667ac36a
|
|
| MD5 |
c09eedcd92e0fee9c49940534af4a66a
|
|
| BLAKE2b-256 |
f2516b6f38b00715c118b22314738b5f603358be45d9536762208c8aacae9d62
|
File details
Details for the file dbreak_redis-0.0.1-py3-none-any.whl.
File metadata
- Download URL: dbreak_redis-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
982dff823ef53407e428c4ee35c8978f76356d89014ec7da38249f1530d4f25d
|
|
| MD5 |
e71eddc5132450a02955f36515a97f22
|
|
| BLAKE2b-256 |
8b7ceef0041ac5b8ddc727afafe8e437e34cac632350def16fa182188bc3e81c
|