Skip to main content

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.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 and os environment variables within your database, use rdbex.reference("ENV", "variable name") in the value section of rdbex.set()

Recovery.

warning!

to repair anything without reinstalling the package, you need to make sure the "recovery.py" and "__internal/_recovery.py" files are accessible.

if you delete a required file from the package or the package gets corrupted and if fails to load on import, you will get an ImportError that says "The package has been installed incorrectly and/or has been corrupted. please reinstall the package.", to fix this, just uninstall & reinstall the package using the package manager of your choice.

if the database is corrupted, you will get an ImportError saying "critical damage to rdbex detected. a repair has been ran, please restart. if the error persists, use "from rdbex import recovery" and run recovery.rebuild() to attempt to fix the issue", before doing anything, try rerunning the code, as it attempts to repair the database. if the error still persists, run from rdbex import recovery. after importing recovery, run recovery.rebuild() to completely rebuild the database metadata.
this WILL wipe ALL user-set config, but NOT the db




*keep in mind that by default, "|" is the spacing character for folders, this can be changed via the configure() command in utils*

this is not full documentation, and it will be coming soon.

converting databases is currently not implemented, but might happen in the future.

Metadata

Release files for rdbex 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rdbex 0.2.6
File Size Uploaded
rdbex-0.2.6.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rdbex 0.2.6
File Interpreter ABI Platform
rdbex-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / rdbex-0.2.6.tar.gz

Download URL rdbex-0.2.6.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
55c895d9e0b8f4e946e6768ac5dc2803bf5356ead3fc8d0817dc2959bbf57e3e
BLAKE2b-256 checksum
How to use checksums
60ca453ecdf8ceccd0c8124e4a91307b543e73f205aa9a25bf0b7641e6a2e6bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.2.0-1016-gcp

Release files / rdbex-0.2.6-py3-none-any.whl

Download URL rdbex-0.2.6-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e660532f6ecb4fd954462123a46362c32e0566dbf51ffc7de1d5858bc2cea392
BLAKE2b-256 checksum
How to use checksums
3fc532c56aef4325e49e1fa788f4288ad6cadf092495e36e83ff61804eb430d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.2.0-1016-gcp

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page