Skip to main content

Templated Abstract Polymorphic Database - A flexible object model library

Project description

TapDB
Templated Abstract Polymorphic Database for Dayhoff objects, EUIDs, lineage, audit, and embeddable GUI/API surfaces.

Runtime · Embedding · Templates · DAG

Overview

TapDB is the shared substrate library for typed templates, generic instances, EUIDs, lineage, audit, external references, and embeddable object GUI/API surfaces. It is not a workflow engine, clinical decision engine, or service-specific application.

Current Dayhoff pin: 9.0.5.

Active clients mount TapDB with TapdbHostBridge and create_tapdb_gui_app at /tapdb when they need generic object/template/lineage UI.

What It Does

Capability Current surface
Templates and generic instances CLI, Python APIs, embedded GUI, embedded JSON/action APIs
EUID object detail /tapdb/object/{euid} plus object APIs
Lineage and external references Graph/detail pages and lineage/external-link APIs
Template creation and validation GUI/API routes and template tests
Audit and metrics Object audit/admin readiness/metrics pages where configured

How It Works

TapDB provides substrate primitives only. Host services supply auth, styling, config path, and app identity through TapdbHostBridge; TapDB supplies mount-aware pages and actions over templates, generic instances, lineage, audit, and external refs. Business workflows, clinical policy, and service-specific validation stay in the owning service.

Quickstart

cd /Users/jmajor/projects/mega_dayhoff/repos_work/daylily-tapdb
source ./activate
tapdb --help
tapdb --config /abs/path/to/tapdb-config.yaml db schema apply
tapdb --config /abs/path/to/tapdb-config.yaml db data seed

Always pass an explicit --config. Do not rely on ambient TAPDB_*, PG*, default database names, or implicit localhost/public-schema behavior.

CLI Interface

The primary CLI is tapdb. It covers schema apply/migrate, template seed/load/validate, generic object operations, admin server helpers, and runtime diagnostics.

Common command families:

Family Purpose
tapdb db schema ... Apply or migrate schema through supported migration files.
tapdb db data ... Seed template/data packs through explicit config.
tapdb templates ... Validate and load template packs.
tapdb objects/lineage ... Work with generic instances and lineage where exposed by CLI.
tapdb admin ... Start or inspect admin/embedded GUI support where configured.

For TapDB, the CLI, embeddable JSON/action APIs, and embeddable GUI are alternate surfaces over the same object/template/lineage/audit substrate. Client services decide which surfaces they expose.

GUI

TapDB provides an embeddable FastAPI GUI. The client-safe pattern is:

from daylily_tapdb.web import TapdbHostBridge, create_tapdb_gui_app

app.mount("/tapdb", create_tapdb_gui_app(config_path="/abs/path/to/tapdb-config.yaml", host_bridge=bridge))

Current GUI routes include /tapdb/, /tapdb/search, /tapdb/templates, /tapdb/templates/new, /tapdb/create/{template_euid}, /tapdb/object/{euid}, /tapdb/object/{euid}/graph, /tapdb/object/{euid}/external-links/new, and admin readiness/metrics pages.

API

TapDB exposes matching embedded APIs for search, object detail, graph, edit JSON, status, lineage, external links, template validate, create instance, readiness, Meridian validation, and metrics.

TapDB stores v0 graph metadata on existing lineage records using json_addl.properties.v0_edge when canonical v0 edge metadata is present. It does not add v0-specific tables.

Testing Info

Focused checks:

python -m pytest tests -q
python -m pytest tests/test_gui_json_editor.py -q

Client integration tests should prove mounted /tapdb routes through the host service, host-session auth, admin role mapping, template creation, object detail/edit, audit, graph, and external-link behavior.

Technical Details, History, And Linkouts

TapDB remains substrate-first. Service-specific workflow rules belong in the owning service.

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

daylily_tapdb-9.0.9.tar.gz (558.1 kB view details)

Uploaded Source

Built Distribution

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

daylily_tapdb-9.0.9-py3-none-any.whl (308.1 kB view details)

Uploaded Python 3

File details

Details for the file daylily_tapdb-9.0.9.tar.gz.

File metadata

  • Download URL: daylily_tapdb-9.0.9.tar.gz
  • Upload date:
  • Size: 558.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for daylily_tapdb-9.0.9.tar.gz
Algorithm Hash digest
SHA256 f02a42d89f80ee2b9628123b19761d1d804a984fed2b9f818425b38aba9c4254
MD5 7e1358e62c8605038c27973ba78229d5
BLAKE2b-256 c4085ae8d6c5aade67aa86e6ccb50fc6dc438ae254d4fcf7a21205b3fb17c4c5

See more details on using hashes here.

File details

Details for the file daylily_tapdb-9.0.9-py3-none-any.whl.

File metadata

  • Download URL: daylily_tapdb-9.0.9-py3-none-any.whl
  • Upload date:
  • Size: 308.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for daylily_tapdb-9.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6811b0714547709401c09c47715c556db5b06921f203eec17c5ed0e33dd3b0d3
MD5 f805d7149a2812a66204eb98476464b0
BLAKE2b-256 99bc11cac6d6b906a1f75be22cc11d2ef6a44e9435ea638f6317a5ea29fd9785

See more details on using hashes here.

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