Python(Flask) based minimal Key/Value store
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
Python 3.6 or greater
Install the dependecies
python3 -m pip install -r requirements.txt
$ ./kv_store.py
Usage: kv_store.py [OPTIONS]
Simple Key/Value Store
Options:
-s, --server Runs KV app in server mode
-i, --serverip TEXT Listen server IP [default: 0.0.0.0]
-p, --serverport INTEGER RANGE Listen port [default: 80] [80<=x<=49151]
-G, --get TEXT Gets key from server
-P, --put <TEXT TEXT>... Stores key to server
-W, --watch Watch for key changes
-e, --endpoint TEXT Server endpoint [default: http://localhost]
--help Show this message and exit.
$ ./kv_store.py -s
Create or update a key:value pair
$ ./kv_store.py -P a 5
published
Get value for a key
$ ./kv_store.py -G a
5
Watch for updates
$ ./kv_store.py -W
Created key - b
Updated key - a
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details