Skip to content

chore: add development seed script#22

Merged
amrtgaber merged 1 commit intomainfrom
chore/seed-script
Feb 6, 2026
Merged

chore: add development seed script#22
amrtgaber merged 1 commit intomainfrom
chore/seed-script

Conversation

@amrtgaber
Copy link
Contributor

Summary

  • Adds scripts/seed.py to populate the local dev database with realistic test data
  • Creates collections, items (with type-specific fields), tags, marks, provenance entries, and notes
  • Supports --clear flag to wipe and re-seed

Usage:

uv run python scripts/seed.py --email user@example.com
uv run python scripts/seed.py --email user@example.com --clear

Test plan

  • Run uv run python scripts/seed.py --email <your-email> against a local DB and verify data appears
  • Run with --clear and verify it wipes + re-seeds cleanly
  • Verify uv run ruff check && uv run ruff format --check && uv run pytest all pass

Populates the local database with realistic test data including
collections, items with type-specific fields, tags, marks,
provenance entries, and notes. Supports --clear to wipe and re-seed.

Usage: uv run python scripts/seed.py --email user@example.com
@amrtgaber amrtgaber merged commit 7456f3b into main Feb 6, 2026
2 checks passed
@amrtgaber amrtgaber deleted the chore/seed-script branch February 6, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant