Skip to main content

Terminal client for Redis with auto-completion and syntax highlighting.

Project description

IRedis (Interactive Redis)

CircleCI PyPI version Python version Chat on telegram Open in Cloud Shell

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 run DEL, iredis will auto complete your command based on KEYS result.
  • Command validation,(eg. try CLUSTER MEET IP PORT, iredis will validate IP and PORT for you)
  • 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.
  • Offcial docs build in HELP command, try HELP SET!

Install

pip install iredis

Usage

Once you install IRedis, you will know how to use it. Just remember, IRedis support similar options like redis-cli, like -h for redis-server's host and -p for port.

$ iredis --help

Development

Release Strategy

The IRedis project was build and released by CircleCI, whenever a tag was pushed to master branch a new release will be pushed to pypi.org, it's very convent.

Thus, we release as often as possible, so users can always enjoy the new features and bugfixes. Any bugfix or new feature will get at least a patch release, the big feature will get a minor release.

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

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

iredis-0.8.6.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

iredis-0.8.6-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file iredis-0.8.6.tar.gz.

File metadata

  • Download URL: iredis-0.8.6.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for iredis-0.8.6.tar.gz
Algorithm Hash digest
SHA256 59f33533e036e0423d1e5886b9d2f6acb48cc16c924c91e9743d997ddb7641ac
MD5 bdca6736fc15a49f8ecb2a206eeee3a6
BLAKE2b-256 9ae567b195017483994e72146412895f9f9471d5eb3a963e250e26934c56b4a5

See more details on using hashes here.

File details

Details for the file iredis-0.8.6-py3-none-any.whl.

File metadata

  • Download URL: iredis-0.8.6-py3-none-any.whl
  • Upload date:
  • Size: 42.5 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for iredis-0.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6aaff512ee1fcd404f85eafd301fa185ba9e13c9d51a8fa7b3655750548a473e
MD5 b3680244269ffb4c7fcd4151fe2d6255
BLAKE2b-256 d1c7db9783b82229abe414dc2c53289fee738e202274cc647b2d43257b26de1a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page