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()
)

Metadata

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 Provenance Actions
dumbee-0.2.3.tar.gz 8.1 kB Without provenance Details for dumbee-0.2.3.tar.gz

Built distribution (wheel)

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

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

Security for dumbee 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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