Skip to main content

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.

Hackatime Badge

"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


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.1.2.tar.gz (14.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.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for dirtree_db-0.1.2.tar.gz
Algorithm Hash digest
SHA256 398861f589b89e9c97c36b61891a3b41a805e44879e0e59387883f8af98a128c
MD5 a2ce6073f3dad8c6be3949dfa206e463
BLAKE2b-256 07e15dba817bc07abbf3b5f1ccee4ea5b9fc9856b83e797bbfeaa815b4b9e4b2

See more details on using hashes here.

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

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

Hashes for dirtree_db-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83a12df44c67d4d5300f1dba6c3aaa8fc3d1248be6139d8f909b8cf6f42d9e69
MD5 4f5dae14d7575e4843a7c4c205b67eda
BLAKE2b-256 e95b2c729df4f5c0ae6cd35ac0aaa02ca133b91c0be8c7ffb53a83a8bc8afc3e

See more details on using hashes here.

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

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page