A dumb database, not for production
Project description
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()
)
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
dumbee-0.2.3.tar.gz
(8.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dumbee-0.2.3-py3-none-any.whl
(11.5 kB
view details)
File details
Details for the file dumbee-0.2.3.tar.gz.
File metadata
- Download URL: dumbee-0.2.3.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86ab684e8f18231568845289239a6dec777ef73f8859c6c24514626e8939735f
|
|
| MD5 |
dce668ebf2f0b968423c1d15124094bf
|
|
| BLAKE2b-256 |
317e4fa54f2a6fc95fd22ada56886e40c6fbfe0b374632962d41384f5bda1d25
|
File details
Details for the file dumbee-0.2.3-py3-none-any.whl.
File metadata
- Download URL: dumbee-0.2.3-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb056d0a8955a00c6b7d84a5cac3ffe73d3fb87a109056d8ee68cac0dd3fb323
|
|
| MD5 |
4930d82e8e43da132adc95a920d8565f
|
|
| BLAKE2b-256 |
8fee231ba84a0ca3abbd40fbd8a25c3baf75f6a9400790df29b98bdaaa23d52f
|