Skip to main content

Generate realistic test data for your databases. Schema-aware, relationship-preserving, privacy-safe.

Project description

Seedbase

Seedbase

Generate realistic, relationship-preserving, privacy-safe test data for your databases — and pull it straight into your local or CI database.

Seedbase lives on seedba.se: you model (or import) a schema there, generate datasets, and use this package to pull them into Postgres, MySQL, SQLite and more. Schema-aware, foreign-key-correct, reproducible by seed.

Install

pip install seedbase

Zero dependencies — pure Python (3.10+).

CLI quickstart

seedbase login                 # opens the browser, stores a token
seedbase init                  # creates .seedbase.json (project + target DB)
seedbase generate --seed 42    # trigger a generation on the platform
seedbase pull all              # write schema + data into your target DB

The CLI is pull-oriented: schema and datasets live on the platform, you pull them into your database. Other commands: projects, generations, pull schema|data, diff, export config, import config.

Python SDK

from seedbase import SeedbaseClient

client = SeedbaseClient(token="dr_sk_...")          # or from ~/.seedbase/config.json
gen = client.generate(project_id, seed=42, wait=True)
data = client.download(gen["id"], fmt="sql")

pytest fixtures

Seedbase ships a pytest plugin, so a freshly seeded dataset is one fixture away:

def test_orders(seeded_data):
    assert seeded_data  # deterministic test data pulled from the platform

Configure via env (SEEDBASE_TOKEN, SEEDBASE_PROJECT, SEEDBASE_SEED) or pytest.ini.

Links

MIT licensed.

Project details


Download files

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

Source Distribution

seedbase-0.1.1.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

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

seedbase-0.1.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file seedbase-0.1.1.tar.gz.

File metadata

  • Download URL: seedbase-0.1.1.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for seedbase-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7078066c973372b566cbd79c4cf7120670d0f96cef43873cddfed25a0a3e41fc
MD5 46729f11225118a10ea60b19fa4dc634
BLAKE2b-256 7bcdae287dfc25b1ee83036b0c9cca4a0e610262d22102d618c1f54ee66c4a64

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedbase-0.1.1.tar.gz:

Publisher: publish.yml on marcelglaeser/seedbase-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seedbase-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: seedbase-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for seedbase-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 071bf5d4ed6b3dfb86bfdf84ff8edc83c89b47d7489d8254c6af16a41fae7e50
MD5 ef9b358bccfda29242163c6c46790863
BLAKE2b-256 e5157d50712f6ba4c80163210e6d202641bcaaf8df9bec85c16bcfea8db8cc24

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedbase-0.1.1-py3-none-any.whl:

Publisher: publish.yml on marcelglaeser/seedbase-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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