A small document database
Project description
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.
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"
}
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
picodoc-0.1.tar.gz
(15.7 kB
view hashes)
Built Distribution
picodoc-0.1-py3-none-any.whl
(16.2 kB
view hashes)