Plain file hierarchical database
Project description
[!IMPORTANT] This is a learning project. The code quality is poor, tests are sparse and there're countless mistakes. I'm well aware of that. Please don't use this thing in prod (as if anyone were considering that in the first place).
Dirtree DB
Hierarchical, plain file database-like python library.
"Wow, this thing is stupid." - myself, 2026
Installation & Usage
Installation:
# Requires python 3.11 or newer
pip install dirtree-db
Usage:
from dirtree_db import Database
db = Database("path/to/directory/containing/config/toml")
You will need a config.toml file in the path selected when defining the database, this is a minimal functional example:
[store]
name = "name"
Usage of functions of the Database class and syntax of config.toml are explained in a separate document
There's also nix package available.
If for some reason you want to use it, add this flake input to your flake:
dirtree-db.url = "github:first-non-interesting-username/dirtree-db";
You can then access this package in your flake as:
inputs.dirtree-db.packages.${pkgs.stdenv.hostPlatform.system}.dirtree-db
If the build is too demanding for you, cachix cache is available, paste that into your configuration:
nix.settings = {
extra-substituters = ["https://dirtree-db.cachix.org"];
extra-trusted-public-keys = [
"dirtree-db.cachix.org-1:geR/eeJBzFUNhj3mwjHm1EK/mzXIG/PF3Bg48YlF1ys="
];
};
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file dirtree_db-0.1.2.tar.gz.
File metadata
- Download URL: dirtree_db-0.1.2.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
398861f589b89e9c97c36b61891a3b41a805e44879e0e59387883f8af98a128c
|
|
| MD5 |
a2ce6073f3dad8c6be3949dfa206e463
|
|
| BLAKE2b-256 |
07e15dba817bc07abbf3b5f1ccee4ea5b9fc9856b83e797bbfeaa815b4b9e4b2
|
Provenance
The following attestation bundles were made for dirtree_db-0.1.2.tar.gz:
Publisher:
publish.yaml on First-Non-Interesting-Username/dirtree-db
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dirtree_db-0.1.2.tar.gz -
Subject digest:
398861f589b89e9c97c36b61891a3b41a805e44879e0e59387883f8af98a128c - Sigstore transparency entry: 2205846655
- Sigstore integration time:
-
Permalink:
First-Non-Interesting-Username/dirtree-db@83273d3cc66a85446639229af1c2917d7959555e -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/First-Non-Interesting-Username
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@83273d3cc66a85446639229af1c2917d7959555e -
Trigger Event:
release
-
Statement type:
File details
Details for the file dirtree_db-0.1.2-py3-none-any.whl.
File metadata
- Download URL: dirtree_db-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83a12df44c67d4d5300f1dba6c3aaa8fc3d1248be6139d8f909b8cf6f42d9e69
|
|
| MD5 |
4f5dae14d7575e4843a7c4c205b67eda
|
|
| BLAKE2b-256 |
e95b2c729df4f5c0ae6cd35ac0aaa02ca133b91c0be8c7ffb53a83a8bc8afc3e
|
Provenance
The following attestation bundles were made for dirtree_db-0.1.2-py3-none-any.whl:
Publisher:
publish.yaml on First-Non-Interesting-Username/dirtree-db
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dirtree_db-0.1.2-py3-none-any.whl -
Subject digest:
83a12df44c67d4d5300f1dba6c3aaa8fc3d1248be6139d8f909b8cf6f42d9e69 - Sigstore transparency entry: 2205846729
- Sigstore integration time:
-
Permalink:
First-Non-Interesting-Username/dirtree-db@83273d3cc66a85446639229af1c2917d7959555e -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/First-Non-Interesting-Username
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@83273d3cc66a85446639229af1c2917d7959555e -
Trigger Event:
release
-
Statement type: