Skip to main content

dbwarden-seeds

Seed data management for DBWarden.

Backs the dbwarden seed command group. Without this plugin those commands tell you to install it; with it installed they work unchanged.

Hooks

Hook Command
seed_create dbwarden seed create: scaffold a versioned SQL or Python seed
seed_apply dbwarden seed apply: apply pending file and code seeds, tracked by checksum
seed_list dbwarden seed list: show seed status, with --prune for orphaned records
seed_rollback dbwarden seed rollback: roll back seed tracking records
seed_export dbwarden seed export: render code seeds to replayable ROC__*.sql files

seed_apply also runs after dbwarden migrate --apply-seeds, and covers both file seeds (seeds/V0001__*.sql) and code seeds (Seed subclasses discovered from your models).

Installation

dbwarden plugin add dbwarden-seeds

Trust tier

This is an official DBWarden plugin. Its distribution name is classified before any of its code is imported, and dbwarden plugin add verifies the PyPI Trusted-Publishing attestation (PEP 740) against dbwarden-org/dbwarden-seeds before installing. It loads automatically once installed, with no dbwarden plugin trust step.

Development

uv venv && uv pip install -e . -e ../dbwarden pytest
pytest -q

The tests/test_conformance.py suite runs DBWarden's shared conformance harness (dbwarden.plugin_conformance): entry point resolution, no import-time side effects, hook signatures, public-API-only imports, and idempotent setup().

License

MIT

Download files

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

Source Distribution

dbwarden_seeds-0.1.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

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

dbwarden_seeds-0.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file dbwarden_seeds-0.1.0.tar.gz.

File metadata

  • Download URL: dbwarden_seeds-0.1.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for dbwarden_seeds-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ed72804ca5708de415364a151afc3b5d64b8f3d9d73d5962820405ddd9dc94f
MD5 721d5b2b9f6a1f3dafb4304b36f085cb
BLAKE2b-256 386a08dff4ca8d87e232facdd1ed8c4694a713af082e48a4e5b3e6c881848651

See more details on using hashes here.

File details

Details for the file dbwarden_seeds-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dbwarden_seeds-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for dbwarden_seeds-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8f58ace433a575d7240bf8aebea087c3abb43648ee33450a6f17d45fa4ab470
MD5 0a8c2cdff24a8d2250f5c86177e2bacb
BLAKE2b-256 ad3684d9c5906f16d80386161f8fba277973dd8961ba4671c084a059611d26f0

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