amit-d-bahir / key-value-datastore

a file-based key-value datastore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File-based key-value-datastore

Data are stored as key-value paies in JSON files

Dependencies:

  • sys
  • argparse
  • threading
  • os
  • datetime

Command line

$ python main.py [-p <path to store data>] -c <clientName> -o <Operation to be performed> -k <key> -v <value> [-t <time-to-live>]

by default the data is stored at C:\data-store\

"client.log" is used to log the file usage

#Example commands:

$ python main.py -h
$ python main.py -c Krishanth -o Create -k A56GH6 -v "RIP Maradonna"
$ python main.py -c Krishanth -o Read -k A56GH6
$ python main.py -c Krishanth -o Delete -k A56GH6

About

a file-based key-value datastore


Languages

Language:Python 100.0%