Skip to main content

Dirtree DB

Hierarchical, plain file database-like python library.

Hackatime Badge

basic usage showcase

"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

Metadata

Release files for dirtree-db 0.2.0

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

Source distribution (sdist)

Source distribution for dirtree-db 0.2.0
File Size Uploaded Provenance
dirtree_db-0.2.0.tar.gz 15.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dirtree-db 0.2.0
File Interpreter ABI Platform
dirtree_db-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / dirtree_db-0.2.0.tar.gz

Download URL dirtree_db-0.2.0.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
587f65c977480f5ffb19c2d66bfd5154cf0be36fd836bfd30d42236bf5effbe8
BLAKE2b-256 checksum
How to use checksums
da59fd155fe3772a6be38d38b2526656fce7b6dca3933a8c53930ebafdc24dfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.

Transparency log

Release files / dirtree_db-0.2.0-py3-none-any.whl

Download URL dirtree_db-0.2.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4939c7196a9cd443794765fe52346b9f10236114b926f0011fc226decf795d86
BLAKE2b-256 checksum
How to use checksums
b8dd226de6c4138de1731beead1492ae4abc4a21e81313c173a6816bebf3991c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.

Transparency log

Security for dirtree-db 0.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dirtree_db-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.

Transparency log

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