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.7. 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.7"
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 |
init rejects an output path that aliases its source SQLite file, including symbolic and hard links. Use a separate configuration path; replacing an existing configuration remains supported. The check covers existing ordinary local files, not concurrent path changes or custom SQLite VFS targets.
For PostgreSQL, install the Core postgres extra and use --url:
python -m pip install "sqlseed[postgres]==0.2.7" "sqlseed-cli==0.2.7"
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 the configuration file cannot be read, parsed, or validated, fill reports the
reason and exits with status 2 before generation or clearing tables. Correct the
file path, UTF-8 YAML/JSON syntax, or reported fields and retry.
Each invocation reads the configuration once; changes made after loading take
effect on a later invocation.
Database exceptions during direct or configuration-driven fill are reported as
Database fill failed: with exit status 1 and URL credentials redacted, without a
Python traceback. For a missing SQLite mode=rw target, no file is created;
correct the target and retry. This diagnostic does not imply rollback of earlier
committed batches.
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.
Replay matches saved table settings using SQLite's ASCII-only case-insensitive name rules; non-ASCII names and PostgreSQL names remain distinct. Multiple saved configurations matching the replay table are rejected before generation rather than choosing one silently. Snapshots without matching table settings retain the legacy defaults.
Snapshots also retain --enrich. Enriched replay reads the current table distribution,
not a frozen copy of the original rows. Older snapshots without this setting
retain the default (false).
replay reports missing, unreadable, or malformed snapshot files with exit status 2
before generation starts. Check the path, read permissions, and UTF-8 YAML syntax.
Snapshot metadata requires a nonblank string table_name, a positive integer
count, and an integer or null seed (which may be omitted). Boolean values are
not accepted as integers.
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.7 and its source candidates. Use local Core and plugins together when developing from source.
- Python
>=3.10 sqlseed>=0.2.5.dev0,<0.3click>=8.0rich>=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.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sqlseed_cli-0.2.7.tar.gz | 51.5 kB | With provenance | Details for sqlseed_cli-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sqlseed_cli-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for sqlseed_cli-0.2.7-py3-none-any.whl |
Total release size: 75.8 kB
Release files / sqlseed_cli-0.2.7.tar.gz
| Download URL | sqlseed_cli-0.2.7.tar.gz |
|---|---|
| Size | 51.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c546f4eb49b08c34f1a07bb71d5e6045d9fe89c6b0f8612e948a5337a157c97
|
|
BLAKE2b-256 checksum How to use checksums |
0b400f3ebace9b2fa763c44827fe4ee351f065e81c20baae45a02a4f0b8e4c36
|
| 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 Nov 12, 2026.
Transparency logRelease files / sqlseed_cli-0.2.7-py3-none-any.whl
| Download URL | sqlseed_cli-0.2.7-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0197541fd5b5873213ece582ee56b91788cca292884a1346486a02b3e3991f75
|
|
BLAKE2b-256 checksum How to use checksums |
a5b0de00d74f1c91ee4b7adcbc0cfb5877ba66774ff2f82eb247629aa3991c19
|
| 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 Nov 12, 2026.
Transparency logSecurity for sqlseed-cli 0.2.7
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sqlseed_cli-0.2.7.tar.gz
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 Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.