4 min read Author: klaas

redmonty a simple web based UI for REDis, MONgoDB and TinYDB based on python



redmonty is a simple web based UI for REDis, MONgoDB and TinYDB based on python.

Opensource and free.

I played around with Redis and was looking for a nice simple GUI I started this as a weekend project on Sept, 13 2019.. and posted it on the r/python "what's everyone working on this week" . I made a short "development diary" about the progress .. here. 

It began and is a simple UI for Redis intended to be runniong locally. Tornado Webserver is included so simply start it and connect to localhost:8080.

Based on

  • Tornado(PythonOnWheels)
  • ACE editor to display and edit values
  • Bootstrap 4 UI
  • Websockets for communication

This is how it looks:


Installation

clone the github repo

[Optional but recommended: Create a virtualenv]

pip install -r requirements.txt

python server.py 

Go to localhost:8080 (You can adapt that in config.py)


And this is the much improved cli

with autocomplete and auto help



Status 16.10.2019

On the way to dockerize redmonty. Docker version already starting and working... 

file: Dockerfile

FROM python:3.7 
EXPOSE 8080
RUN mkdir -p /usr/local/redmonty
WORKDIR /usr/local/redmonty
COPY requirements.txt /usr/local/redmonty/
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD python3 /usr/local/redmonty/server.py

#todo for dockerization:

  • make tinydb mounted locally so the connections will be kept.
  • bundle with redis container to quickstart from redmonty to redis container.. for demo and test purposes ..

example file: docker-compose.yml

version: '3' 
services:
redmonty:
build: .
ports:
- "8080:8080"
volumes:
- /home/khz/db:/usr/local/redmonty/db
environment:
- PYTHONPATH=/usr/local
redis:
image: "redis:alpine"


So the overall redmonty status so far:

  • Redis working
  • Connect works
  • Scan keys by pattern
  • Create (set)
  • Read (get)
  • Update
  • Delete
  • Server info
  • CLi => autocomplete (awesomplete) works
  • CLI => display context help for commands works

GitHub Repo: https://github.com/pythononwheels/redmonty

Comments, ideas, help very appreciated. Just tweet to  @pythononwheels .. or create an issue, PR etc on the gitHub repo..

archivednostalgia ยท 2012โ€“2019