- For the Database I used the online Replit Database.
- (https://replit.com), (https://docs.replit.com/misc/database).
- Import the database:
from replit import db
- Set a key to a value:
db["key"] = "value"
- Get a key's value:
value = db["key"]
- Delete a key:
del db["key"]
- List all keys:
keys = db.keys()
- List keys with a prefix:
matches = db.prefix("prefix")