StupidDB
StupidDB is probably the stupidest database system ever made.
It's a simple KV Store, but every key is actually a directory, and inside this directory is a file containing the value of the key.
But it's still actually very easy to use!
Here's the documentation :
You can install it using pip : pip install stupiddb
import stupiddb
db = stupiddb.StupidDatabase("my_db")
db.set("cow", "mammal") # Set a KV pair
db.set_dict({"snake": "reptile", "mouse": "mammal", "crocodile": "reptile", "cat": "mammal"}) # Set multiple KV pairs using a dictionary syntax
print(f"The cow is a {db.get('cow')}") # Get a key's value
db.delete("cow") # Remove a key out of the database
database = db.get_as_dict() # Get the whole database as a dictionary
db.reset() # Remove all keys out of the database
And that's it!
Metadata
Release files for stupiddb 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stupiddb-1.0.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stupiddb-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / stupiddb-1.0.tar.gz
| Download URL | stupiddb-1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fc9d5ca83b4d13903a3a899d0247531431eecba8ad788723b82c523d626e770
|
|
BLAKE2b-256 checksum How to use checksums |
8b1399342fe57a06baf0d5df1a3faee0b7756706b563558980f6955c6d21f306
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / stupiddb-1.0-py3-none-any.whl
| Download URL | stupiddb-1.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ce395076058edcc474ecebb547fe911edb9024a17fe6b1a5b1c9b82724d21f6
|
|
BLAKE2b-256 checksum How to use checksums |
fdadccd7efd2862fd2390b857b9d57a3b401b8ff82986481fe8ec74a4ebbdda9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|