Skip to main content

[!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.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dirtree_db-0.2.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dirtree_db-0.2.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for dirtree_db-0.2.0.tar.gz
Algorithm Hash digest
SHA256 587f65c977480f5ffb19c2d66bfd5154cf0be36fd836bfd30d42236bf5effbe8
MD5 caea7ce84d57b837e274da2f0caa0d7d
BLAKE2b-256 da59fd155fe3772a6be38d38b2526656fce7b6dca3933a8c53930ebafdc24dfe

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for dirtree_db-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4939c7196a9cd443794765fe52346b9f10236114b926f0011fc226decf795d86
MD5 4eaa2f4a3d8d6ad633d532d6159c7785
BLAKE2b-256 b8dd226de6c4138de1731beead1492ae4abc4a21e81313c173a6816bebf3991c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.0

2 files

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