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
KEYSthen runDEL, iredis will auto complete your command based onKEYSresult. - 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
Release files for iredis 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iredis-0.1.16.tar.gz | 27.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iredis-0.1.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.1 kB
Release files / iredis-0.1.16.tar.gz
| Download URL | iredis-0.1.16.tar.gz |
|---|---|
| Size | 27.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81678a8d637a466e3f03a0381463c1b1aa997dc5311b682ef17e2b005c943a27
|
|
BLAKE2b-256 checksum How to use checksums |
d47a98e1836777179fd480b44981d970c4942edb881da1e5155680fedd418207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1
|
Release files / iredis-0.1.16-py3-none-any.whl
| Download URL | iredis-0.1.16-py3-none-any.whl |
|---|---|
| Size | 30.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f4db9313ff59ba43167426650cde237d8741edc6f7a92c12eab8b802628e5ed
|
|
BLAKE2b-256 checksum How to use checksums |
86f07427a4e14dae239a47a19ed4c9d1ba106c732df00b2c93d27a00c4d9516e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1
|