Skip to main content

dumbee

Pretend it's a database

Installation

pip install dumbee

Getting started

import dumbee

# create an Engine
db = dumbee.Engine(
    driver=dumbee.drivers.Filesystem("./data", extensions=[(".", "json")]),
    middlewares=dumbee.Pipeline(
        [
            dumbee.ext.logging.Logger(),
            dumbee.ext.jsonschema.Validator(
                {
                    "schema": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "age":{
                                "type":"number"
                            }
                        },
                        "required":["name"]
                    },
                    "paths":[
                        "./users/[A-Za-z]+$"
                    ]
                }
            ),
            dumbee.ext.json.Serializer(),
        ]
    ),
)

# write and read back a record
me = (
    db
    .collections["users"]
    .get("me")
    .write({"name":"David", "age":32})
    .read()
)

# nested collection
repos = (
    db
    .collections["users"]
    .get("me")
    .collections["repositories"]
    .get("OSS")
    .write(["easychart","easytree","doubledate","dumbee"])
    .read()
)

Release files for dumbee 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dumbee 0.2.3
File Size Uploaded
dumbee-0.2.3.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dumbee 0.2.3
File Interpreter ABI Platform
dumbee-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / dumbee-0.2.3.tar.gz

Download URL dumbee-0.2.3.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
86ab684e8f18231568845289239a6dec777ef73f8859c6c24514626e8939735f
BLAKE2b-256 checksum
How to use checksums
317e4fa54f2a6fc95fd22ada56886e40c6fbfe0b374632962d41384f5bda1d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / dumbee-0.2.3-py3-none-any.whl

Download URL dumbee-0.2.3-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb056d0a8955a00c6b7d84a5cac3ffe73d3fb87a109056d8ee68cac0dd3fb323
BLAKE2b-256 checksum
How to use checksums
8fee231ba84a0ca3abbd40fbd8a25c3baf75f6a9400790df29b98bdaaa23d52f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page