Skip to main content

dbwarden-seeds

Python PyPI CI

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

Code seeds must declare a permanent version such as __seed_version__ = "C0001". Never change or reuse a released code-seed version; add a new class with the next version instead.

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

Metadata

Release files for dbwarden-seeds 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbwarden-seeds 0.1.3
File Size Uploaded
dbwarden_seeds-0.1.3.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbwarden-seeds 0.1.3
File Interpreter ABI Platform
dbwarden_seeds-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 34.3 kB

Release files / dbwarden_seeds-0.1.3.tar.gz

Download URL dbwarden_seeds-0.1.3.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
383244238416885482f9ba2e44e6ae2499092ccf9c644cd06aaecfe654af4114
BLAKE2b-256 checksum
How to use checksums
da941af4feb69618759c025d4741cba32f6a62f3b8ab7b017bfbabbd3bddfba0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / dbwarden_seeds-0.1.3-py3-none-any.whl

Download URL dbwarden_seeds-0.1.3-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4393428cf25df358ea7bd8e9ade1848efff26f1ccd1eb826c93216082ff97536
BLAKE2b-256 checksum
How to use checksums
8b33fa28043f12391c2b8e9553e7ab8638bb87fb13e1975b2bd7a33ad55ba3c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.0

2 release 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