Terminal Client for Redis with AutoCompletion and Syntax Highlighting.
Project description
IRedis (Interactive Redis)
A Terminal Client for Redis with AutoCompletion and Syntax Highlighting. It is an alternative for redis-cli. IRedis is supposed to friendly for both user and redis-server, which means it is safe to use IRedis on production server. IRedis provide a --strict
mode to prevent accidently running dangerous command, like KEYS *
(See here, the Latency generated by slow commands section.
This project is under development, any comments are welcome.
Features
- Advanced code completion. If you run command
KEYS
then runDEL
, iredis will auto complete your command based onKEYS
result. - Command validation:
CLUSTER MEET IP PORT
- Command highlighting, fully based on redis grammar. Any valide command in iredis shell is a valide redis command.
- Ctrl + C to clear cureent line, won't exit redis-cli. Use Ctrl + D
- Say "Goodbye!" to you when you exit!
- Ctrl + R to open reverse-i-search to search through command history.
- Auto suggestions. (Like fish shell.)
- Support
--encode=utf-8
, to decode Redis' bytes responses. - Command hint on bottom, include command syntax, supported redis version, and time complexity.
Install
pip install iredis
Usage
$ iredis -h
Development
Setup Environment
iredis favors poetry as a packagement tool. You can setup a develop envioment on your computer easily.
First, install poetry(You can do it in a python's virtualenv):
pip install poetry
Then run(which euqals pip install -e .
):
poetry install --develop=DEVELOP
Development Logs
Since this is a commandline tool, so we didn't write logs to stdout.
You can tail -f iredis.log
to see logs, the log is pretty clear, you can see what actually happend from log files.
Command Reference
There is a full Redis command list in commands.csv file, downloaded by:
python scripts/download_redis_commands.py > data/commands.csv
commands.csv
is here only for test if redis.io was updated, do not package it into release.
Current implemented commands: command_syntax.csv.
Planned Features
Please see issue. And you are welcome to submit one.
Related Projects
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
File details
Details for the file iredis-0.2.12.tar.gz
.
File metadata
- Download URL: iredis-0.2.12.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0d38c309bc09a0176090d62041a0ab246d6827a1eb8d873e9d2e9329f626c4a |
|
MD5 | 002b177fa4a224d2a222f3fde70e04c4 |
|
BLAKE2b-256 | e6cbb35160f6ce7702d0cf036aece3a3c726c3e44215e5abcc9c1907f5bd145d |
File details
Details for the file iredis-0.2.12-py3-none-any.whl
.
File metadata
- Download URL: iredis-0.2.12-py3-none-any.whl
- Upload date:
- Size: 36.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a9d8b5dda0feec44a2241c8d9d5130697aba2383c1478dd0a548e234e4bc0c8 |
|
MD5 | 5e7d3df67d90e6e800450b94ade26f12 |
|
BLAKE2b-256 | c78425f4bcade00fcb88822258de8a72b3631d25c9b893b02e40a54432d3e13d |