Skip to main content

sqlseed-cli

Command-line interface for sqlseed: generate SQLite and PostgreSQL test data, preview samples, inspect schema, and save or replay configuration. This package provides the sqlseed command.

Installation

These instructions target version 0.2.6. Check Releases for publication status; use the source installation below to test an unpublished candidate. Use a Python 3.10+ virtual environment:

python -m pip install "sqlseed-cli==0.2.6"

Core 0.2.4 and older lack the shared diagnostic interfaces required by this version. For development, install Core and the required local plugins together from the repository root:

python -m pip install -e . -e ./plugins/sqlseed-cli

For AI commands in a source checkout, install all three local packages together:

python -m pip install -e . -e ./plugins/sqlseed-cli -e ./plugins/sqlseed-ai

Installing only sqlseed provides the Python API. Install sqlseed-cli or the Core cli extra to get the console command. Faker is included with Core; Mimesis is optional. The examples below select the installed Faker provider explicitly.

Usage

Create your tables first, then run:

sqlseed fill app.db -t users -n 1000 --provider faker --no-ai
sqlseed preview app.db -t users -n 5 --provider faker
sqlseed inspect app.db --table users --show-mapping
sqlseed init generate.yaml --db app.db
sqlseed fill app.db -t users -n 100 --provider faker --no-ai --snapshot
sqlseed replay <cache_dir>/snapshots/YYYY-MM-DD_HHMMSS_ffffff_users.yaml
Command Purpose
fill Generate and write data into existing tables
preview Generate samples without writing them
inspect Show schema and column mapping
init Write a YAML configuration template
replay Run a saved configuration snapshot

For PostgreSQL, install the Core postgres extra and use --url:

python -m pip install "sqlseed[postgres]==0.2.6" "sqlseed-cli==0.2.6"
sqlseed fill --url "postgresql+psycopg://user:pass@host/db" -t users -n 1000 --provider faker --no-ai
sqlseed inspect --url "postgresql+psycopg://user:pass@host/db"

For configuration-driven generation, put exactly one of db_path or url in the YAML. Set provider: faker in a generated template, or install the optional Mimesis provider if the template uses provider: mimesis:

sqlseed fill --config generate.yaml --no-ai

--config cannot be combined with a positional database path or --url. Omitted --provider, --locale, and --batch-size preserve the YAML values. Explicit options override those values, including options equal to the command defaults. Without --config, the defaults are mimesis, en_US, and 5000.

If any table reports generation errors, the command prints those errors and exits with status 1. count reports rows actually committed; a later batch failure can leave earlier commits. A snapshot retains a supplied transform script path and replay runs that script again; the script itself is not embedded in the snapshot.

The optional AI plugin registers ai-suggest, ai-analyze, and auto-heal through sqlseed.cli_commands. CLI does not require AI for its five base commands.

Requirements

These metadata requirements apply to version 0.2.6 and its source candidates. Use local Core and plugins together when developing from source.

  • Python >=3.10
  • sqlseed>=0.2.5.dev0,<0.3
  • click>=8.0
  • rich>=13.0

See the user guide, migration guide, and package source.

License: AGPL-3.0-or-later. The distribution includes the full LICENSE text.

Metadata

Release files for sqlseed-cli 0.2.6

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

Source distribution (sdist)

Source distribution for sqlseed-cli 0.2.6
File Size Uploaded
sqlseed_cli-0.2.6.tar.gz 41.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqlseed-cli 0.2.6
File Interpreter ABI Platform
sqlseed_cli-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 64.1 kB

Release files / sqlseed_cli-0.2.6.tar.gz

Download URL sqlseed_cli-0.2.6.tar.gz
Size 41.2 kB
Tags Source
SHA-256 checksum
How to use checksums
019565eddac74cdfd26ce6cd4ca3eb2497ca96044356e513048c724723ab85c4
BLAKE2b-256 checksum
How to use checksums
08a20f9017b3ee83b671612d3fed1bfa9ac3295eb51a058ff1d5241a9091d221
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 7, 2026.

Transparency log

Release files / sqlseed_cli-0.2.6-py3-none-any.whl

Download URL sqlseed_cli-0.2.6-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8799853f079e31baceae6b788b8cd28d7f3f6bd0837818cafe1670519a339c31
BLAKE2b-256 checksum
How to use checksums
29f5bfc05abe9a42889c180a98f1742c697aecc75e82360a65a7d0915af02045
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

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