Metadata-Version: 2.1
Name: stupiddb
Version: 1.0
Summary: The stupidest database system ever made
Home-page: https://github.com/gugu256
Author: gugu256
Author-email: gugu256@mail.com
Project-URL: GitHub Repository, https://github.com/gugu256/StupidDB
Keywords: database key value key-value KV esoteric
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown

# 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`

```python
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!
