The stupidest database system ever made
Project description
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!
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.
Source Distribution
stupiddb-1.0.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file stupiddb-1.0.tar.gz
.
File metadata
- Download URL: stupiddb-1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc9d5ca83b4d13903a3a899d0247531431eecba8ad788723b82c523d626e770 |
|
MD5 | 26d9c9f531e11d5902c3d4ae94345473 |
|
BLAKE2b-256 | 8b1399342fe57a06baf0d5df1a3faee0b7756706b563558980f6955c6d21f306 |
File details
Details for the file stupiddb-1.0-py3-none-any.whl
.
File metadata
- Download URL: stupiddb-1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ce395076058edcc474ecebb547fe911edb9024a17fe6b1a5b1c9b82724d21f6 |
|
MD5 | 72f62d234c3c3fffb35ebba35d0f2753 |
|
BLAKE2b-256 | fdadccd7efd2862fd2390b857b9d57a3b401b8ff82986481fe8ec74a4ebbdda9 |