Metadata-Version: 2.1
Name: picodoc
Version: 0.1.1
Summary: A small document database
Home-page: https://github.com/donkere-vader/picodoc
Author: Donkere Vader
Author-email: donkere.v@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/donkere-vader/picodoc/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# PicoDoc

Just a very simple Python dict/ JSON database. Not safe. Don't use if your data is important.

## Usage

Using the library should be very straight forward. Open a database with the ``picodoc.open_db`` function and use it as if it were a dict.

```py
import picodoc

db = picodoc.open_db("database.picodoc")  # It's a sqlite database under the hood

# db is now your root of the document database

db['users'] = {}
db['users']['john.doe'] = {
    "name": "John Doe",
    "email": "john.doe@example.com",
}

# saving is done automatically

print(db)

>>>

{
    "users": {
        "john.doe": {
            "name": "John Doe",
            "email": "john.doe@example.com"
        }
    }
}
```


