[!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
The main use case for this library is collaborative data collection in a git repo. It's terrible at that, but not as much as using it for things a database would be used for normally.
Installation & Usage
Installation:
# Requires python 3.11 or newer
pip install dirtree-db
Usage:
from dirtree_db import Database
from pathlib import Path
db = Database(Path("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
Nix
If for some reason you want to use nix for this library, 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
Tech stack
This library is made using almost only Python standard libraries, jsonschema is the only exception.
Contributing
If you want to contribute for some reason, make sure to read CONTRIBUTING.md
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.2.0.tar.gz.
File metadata
- Download URL: dirtree_db-0.2.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
587f65c977480f5ffb19c2d66bfd5154cf0be36fd836bfd30d42236bf5effbe8
|
|
| MD5 |
caea7ce84d57b837e274da2f0caa0d7d
|
|
| BLAKE2b-256 |
da59fd155fe3772a6be38d38b2526656fce7b6dca3933a8c53930ebafdc24dfe
|
Provenance
The following attestation bundles were made for dirtree_db-0.2.0.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.2.0.tar.gz -
Subject digest:
587f65c977480f5ffb19c2d66bfd5154cf0be36fd836bfd30d42236bf5effbe8 - Sigstore transparency entry: 2553265700
- Sigstore integration time:
-
Permalink:
First-Non-Interesting-Username/dirtree-db@d50fcbc305be0dabe747ea8199a9e830097360cb -
Branch / Tag:
refs/tags/v0.2.0 - 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@d50fcbc305be0dabe747ea8199a9e830097360cb -
Trigger Event:
release
-
Statement type:
File details
Details for the file dirtree_db-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dirtree_db-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4939c7196a9cd443794765fe52346b9f10236114b926f0011fc226decf795d86
|
|
| MD5 |
4eaa2f4a3d8d6ad633d532d6159c7785
|
|
| BLAKE2b-256 |
b8dd226de6c4138de1731beead1492ae4abc4a21e81313c173a6816bebf3991c
|
Provenance
The following attestation bundles were made for dirtree_db-0.2.0-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.2.0-py3-none-any.whl -
Subject digest:
4939c7196a9cd443794765fe52346b9f10236114b926f0011fc226decf795d86 - Sigstore transparency entry: 2553265741
- Sigstore integration time:
-
Permalink:
First-Non-Interesting-Username/dirtree-db@d50fcbc305be0dabe747ea8199a9e830097360cb -
Branch / Tag:
refs/tags/v0.2.0 - 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@d50fcbc305be0dabe747ea8199a9e830097360cb -
Trigger Event:
release
-
Statement type: