MockSQL
MockSQL generates SQL unit-test fixtures with an LLM, runs them locally on
DuckDB, evaluates their quality, and saves replayable tests for CI. Install the
CLI with pip install mocksql; install mocksql[bigquery],
mocksql[snowflake], or mocksql[all] when a source connector is needed.
Generated tests never execute against the source warehouse. See the project README for user setup and connector guidance.
Development
Pour l'installation, la configuration GCP et le CLI, voir le README racine.
FastAPI · LangGraph · Python 3.12
python -m venv .venv
source .venv/bin/activate # Windows : .\.venv\Scripts\activate
pip install poetry && poetry install --all-extras
cp .env.example .env # compléter les variables (voir README racine §3)
uvicorn server:app --port 8080 --reload
Les connecteurs sources (BigQuery, Snowflake) sont des extras optionnels, exclus de l'install de base pour l'alléger.
poetry installseul n'installe que le cœur (génération + DuckDB) ; ajoutez--all-extras(ou--extras "bigquery snowflake") pour travailler sur le profiling/import.
Commandes
make style # ruff check + ruff format --check + vulture (code mort)
make format # auto-format + auto-fix ruff
make test # pytest
make check # style + test
Type checking :
poetry run mypy build_query/ app/
Packaging
poetry build --output dist
This produces the mocksql wheel and source distribution in dist/.
License
MockSQL is released under the MIT License.
Metadata
Release files for mocksql 0.2.1
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 |
|---|---|---|---|---|
| mocksql-0.2.1.tar.gz | 1.2 MB | With provenance | Details for mocksql-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mocksql-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for mocksql-0.2.1-py3-none-any.whl |
Total release size: 2.4 MB
Release files / mocksql-0.2.1.tar.gz
| Download URL | mocksql-0.2.1.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00836850f1f515d37b10922c284fd7991111ee88936655ca60c93d52aa236e23
|
|
BLAKE2b-256 checksum How to use checksums |
dd9c44c56346a96384ed47cf2eb0b8969efee37a064ba7dc6599053e90fbed83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 26, 2026.
Transparency logRelease files / mocksql-0.2.1-py3-none-any.whl
| Download URL | mocksql-0.2.1-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
692fa4e2aff87f9546efd28bddc6ce76c275cc0b6e4f1c31a212f87678da0fb3
|
|
BLAKE2b-256 checksum How to use checksums |
7f0865b38016a1f5f9a462c8b9d21c5627739e90d36fe890960a198e59c2f1f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 26, 2026.
Transparency logSecurity for mocksql 0.2.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mocksql-0.2.1.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 Jul 26, 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.