/key-value-store

Kata: Simple key value store in Python

Primary LanguagePython

Key-Value Python Store

The purpose of this app create a simple key-value store in Python. All data will be stored in memory for simplicity.

Run app

$ python -m keyvaluestore

๐ŸWelcome to the Simple Storage System!๐Ÿ

You can use the following commands:

        BEGIN           ๐Ÿ”ธ start a new transaction
                SET             Set a key-value pair.
                UNSET           Unset a key
                GET             Get the value associated with a key.
                NUMEQUALTO      Returns the number of keys that are
                                associated with the given value.
        COMMIT          ๐Ÿ”ธ commit the current transaction.
        ROLLBACK        ๐Ÿ”ธ rollback the current
                           transaction.
        HELP            ๐Ÿ”ธ show this help message
        END             ๐Ÿ”ธ end the program
[13:31:24] DEBUG    Transactions: None                                                                                    script.py:24
Enter the command:  (HELP):