etlantic-sqlmodel
Optional bridge between ETLantic Data contracts and
SQLModel table models, plus optional CP1
control-plane reference stores. Install when you need contract_to_sqlmodel
helpers or SQLModel-backed definition/submission stores for local CP1 demos.
Package version is 0.39.0 — pin with core.
Install
pip install 'etlantic-sqlmodel==0.39.0'
# pip install 'etlantic==0.39.0'
Schema bridge
from etlantic import Data
from etlantic_sqlmodel import contract_to_sqlmodel, compare_metadata
class Customer(Data):
customer_id: int
name: str
CustomerTable = contract_to_sqlmodel(
Customer,
table_name="customer",
primary_key=("customer_id",),
)
assert compare_metadata(Customer, CustomerTable).valid
Control-plane reference stores (CP1)
Request-scoped sessions and SQLModel-backed DefinitionRepository /
SubmissionStore implementations. Persistence models are separate from HTTP
response models. create_control_plane_tables is for tests and local demos —
not a production migration strategy.
from etlantic_sqlmodel.control_plane import (
SQLModelDefinitionRepository,
SQLModelSubmissionStore,
create_control_plane_tables,
create_sqlite_engine,
)
engine = create_sqlite_engine("sqlite:///cp.db")
create_control_plane_tables(engine)
definitions = SQLModelDefinitionRepository(engine)
submissions = SQLModelSubmissionStore(engine)
These stores honor scoped idempotency and survive process restart when backed by a durable database URL. They are not a production multi-tenant claim.
Links
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file etlantic_sqlmodel-0.39.0.tar.gz.
File metadata
- Download URL: etlantic_sqlmodel-0.39.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f46f500b6afc58e50a9d2cba38da6d55b78459558c4eece97e8e2bc9c642b107
|
|
| MD5 |
fa39fda6cd5e3d529b650e83a39d66db
|
|
| BLAKE2b-256 |
a004198d7febc21028a6f135e02f3db0f752515e54f4f23f3398b768bfc77b21
|
File details
Details for the file etlantic_sqlmodel-0.39.0-py3-none-any.whl.
File metadata
- Download URL: etlantic_sqlmodel-0.39.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bcfc0361a16f5222bf2f31ff40c7d462604d229e53c91d2de4aeeca2e33c6d8
|
|
| MD5 |
7d3c86ecd7120160951048d262688637
|
|
| BLAKE2b-256 |
2c81bb512054b266c3eea27653529c3fd6b927fda195edb24e0c551de2822369
|