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.5. 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.5"

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.5" "sqlseed-cli==0.2.5"
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.5 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.5

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.5
File Size Uploaded
sqlseed_cli-0.2.5.tar.gz 41.2 kB Details

Built distribution (wheel)

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

Total release size: 64.0 kB

Release files / sqlseed_cli-0.2.5.tar.gz

Download URL sqlseed_cli-0.2.5.tar.gz
Size 41.2 kB
Tags Source
SHA-256 checksum
How to use checksums
af5506e410faba8acc855a30e871fa60dbdbbda6ca0a601e9589708bfd27e6dc
BLAKE2b-256 checksum
How to use checksums
54bdc90bdf86c3ca9a7bebd3942cbab8dc639a5165a2e496f32c8d7d4041b995
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 2, 2026.

Transparency log

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

Download URL sqlseed_cli-0.2.5-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
779c103106289933b0cb97cda6c267628be340ae7e093f1fff868beb969d9644
BLAKE2b-256 checksum
How to use checksums
c67e229b1b453270d3e9b4169a14c918031dda83290cce2fdeea2c5bce158e85
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 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.6

2 release files

This release

0.2.5 This release

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