Skip to main content

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.1.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

picodoc-0.1.1-py3-none-any.whl (16.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page