SQaLe
A Python utility for deserializing the SQaLe dataset into populated SQLite databases.
Each unique schema in the dataset is materialized as a .db file and populated with the synthetic row data stored alongside it — ready to use for SQL benchmarking, evaluation, or development.
Installation
pip install SQaLe
Usage
CLI
# Download and deserialize all schemas
sqale-extract --output ./dbs
# Limit to the first 100 unique schemas
sqale-extract --output ./dbs --limit 100
Python API
from sqale import deserialize_sqale
results = deserialize_sqale(
file_path="trl-lab/SQaLe_2", # HuggingFace repo ID or local path
output_dir="./dbs",
limit=100, # optional
)
for r in results:
print(r["db_path"], r["rows_per_table"])
The function returns a list of dicts with the following fields:
| Field | Description |
|---|---|
schema_id |
Original schema ID from the dataset |
db_path |
Absolute path to the created .db file |
tables |
List of table names found in the DDL |
rows_per_table |
Dict mapping table name → number of rows inserted |
error |
Error message if materialization failed, otherwise None |
Loading from a local file
results = deserialize_sqale(
file_path="./data/train.parquet",
output_dir="./dbs",
)
Supported local formats: .parquet, .arrow, or a directory containing either.
Requirements
- Python ≥ 3.9
pandas,tqdm,pyarrow,datasets
License
See LICENSE.
Release files for SQaLe 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqale-0.1.5.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqale-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / sqale-0.1.5.tar.gz
| Download URL | sqale-0.1.5.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c55ae16c2e053b4d4f5054f243e99cbb60d2e2c4e77de659eb9decae78850c35
|
|
BLAKE2b-256 checksum How to use checksums |
406c52c3eb0003a69974dda3e138468eeb2f5cf5dcca6291109b76d1fca8ef5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 4, 2026.
Transparency logRelease files / sqale-0.1.5-py3-none-any.whl
| Download URL | sqale-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2569bc66267b703af0e63640ecf7d219f9863c0e3057deac73d65e856830719
|
|
BLAKE2b-256 checksum How to use checksums |
1d825dc7ae3bffc0ac929df7180079a1e180c66180ad4ad4fc4974e0da3fb9fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 4, 2026.
Transparency log