Replit DataBase EXtended
Project description
RdbEX
Replit DataBase EXtended
Replit database extended is a package designed to expand the abilities of the default replit database.
it adds things such as:
emulated folders
ease of access
value sharing
safe secret storage
and much more...
how to use: a basic rundown
(NOTE: does NOT support versions below 0.1.2)
after installing the package, import using import rdbex
.
to create a new key in the root directory, use rdbex.set("keyname")
.
to delete a key, use rdbex.delete("keyname")
.
to create a new key within a folder, use rdbex.set("keyname", "folderA")
. (same thing for deleting keys within folders)
to create keys within nested folders, use rdbex.set("keyname", "folderA|folderB")
. (same thing for deleting keys within folders)
to list keys and list keys within a folder(s), use rdbex.list("folderA|folderB (optional)")
.
and to drop your database (with an optional path), use rdbex.drop("folderpath (optional)")
key sharing
to share a key with another value, use rdbex.reference("FROM", "key", "path (optional)"
in the value
section of rdbex.set()
secret storage
to safely store replit secrets within your database, use rdbex.reference("SECRET", "secret name")
in the value
section of rdbex.set()
keep in mind that by default, "|" is the spacing character for folders, this can be changed in rdbex -> config.py
this is not full documentation, and it will be coming soon.
converting databases is currently not implemented, but might happen in the future.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.