Skip to main content

Templated Abstract Polymorphic Database - A flexible object model library

Project description

daylily-tapdb

daylily-tapdb is the shared persistence layer used by Bloom, Atlas, Dewey, and Ursa.

It provides:

  • a template-driven polymorphic object model
  • TapDB-managed database/bootstrap workflows
  • lineage and audit primitives
  • Meridian EUID-backed public identifiers
  • a Typer-based operational CLI
  • an optional FastAPI admin UI package

Repository Role

Use this repo when you need to:

  • bootstrap or reset a TapDB-backed environment
  • work with core template and instance models
  • embed or run the TapDB admin UI
  • validate namespace config, schema, data seeding, or Aurora support

Primary Python package: daylily_tapdb

Main CLI Surface

Entry command: tapdb

Primary groups:

  • tapdb bootstrap: one-command local or Aurora bootstrap
  • tapdb ui: admin UI start, stop, status, logs, mkcert
  • tapdb config: namespace config initialization and migration helpers
  • tapdb db: database, schema, data, and config validation commands
  • tapdb pg: local PostgreSQL service commands
  • tapdb user: TapDB admin/auth user management
  • tapdb cognito: Cognito/daycog integration helpers
  • tapdb aurora: Aurora cluster management when installed with .[aurora]

Data Model

The core operational tables are:

  • generic_template
  • generic_instance
  • generic_instance_lineage
  • audit_log
  • outbox_event

TapDB uses uid for internal joins and EUIDs for public-facing identity.

tenant_id is the logical isolation key on templates, instances, lineage, audit, and outbox rows.

Installation

Default install:

pip install daylily-tapdb

Common dev install:

python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e ".[admin,dev,cli]"

Optional convenience wrapper:

source tapdb_activate.sh

Quick Start

Initialize a strict namespace and bootstrap a local stack:

export TAPDB_CLIENT_ID=tapdb
export TAPDB_DATABASE_NAME=tapdb
export TAPDB_ENV=dev

tapdb config init --client-id "$TAPDB_CLIENT_ID" --database-name "$TAPDB_DATABASE_NAME" --env dev --db-port dev=5533 --ui-port dev=8911
tapdb bootstrap local

Admin UI

The admin UI is optional and ships with the admin extra.

Key modes:

  • native TapDB auth
  • shared host-app auth
  • auth-disabled local development

See the embedding guide for the current supported patterns.

Timezone Policy

  • persisted timestamps are UTC
  • user display timezone preference lives in TapDB-backed system_user preferences
  • canonical preference key: display_timezone

Current Docs

Historical execution plans and breaking-change notes remain in docs/ for background only.

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-0.1.39.tar.gz (239.2 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-0.1.39-py3-none-any.whl (186.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for daylily_tapdb-0.1.39.tar.gz
Algorithm Hash digest
SHA256 479dbe7d9e85a6d1ecacd7c7f926ca77f79c069f1772b1134ed55cab188e1d61
MD5 cdc547ecdd32ddd9f638d4da7237f8ca
BLAKE2b-256 f7ae976ccfccc3246dc076d5bef0858c9dbc50a88c3306bbb02ad92c66d5b37c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for daylily_tapdb-0.1.39-py3-none-any.whl
Algorithm Hash digest
SHA256 2b7952ecb2676878b6fffd31ccb1b9d824c40dc8a0b224809be4bf44ac4bbcb4
MD5 b3442b25d2f7fe8fa9096ce4e4d99e09
BLAKE2b-256 d738e6cf820be4d9b56c5ca0858f5636cfed572822a54359aacc72659e795f14

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