zeromodel-sqlalchemy 1.0.13
zeromodel-sqlalchemy owns the SQLAlchemy and SQLite persistence adapter for
the validated video action-set domain. Its import namespace is
zeromodel.persistence.sqlalchemy.
The package depends on zeromodel==1.0.13, zeromodel-video==1.0.13, NumPy,
and SQLAlchemy 2.x. It does not depend on analysis, vision, research fixtures,
examples, Torch, TorchVision, Transformers, or Pillow.
Boundary
Video owns DTOs, domain services, runtime protocols, and the in-memory Store.
This package owns SQLAlchemy engines, sessions, ORM rows, schema creation, and
SQL Store implementations. Store methods accept and return video DTOs; ORM
objects remain internal to zeromodel.persistence.sqlalchemy.db.orm and
zeromodel.persistence.sqlalchemy.db.stores.
Schema Initialization
Database creation is explicit. Importing zeromodel.persistence.sqlalchemy
does not create files, tables, engines, or sessions.
from pathlib import Path
from zeromodel.persistence.sqlalchemy import (
SqlAlchemyVideoActionSetStore,
create_database_engine,
create_schema,
create_session_factory,
sqlite_database_url,
)
engine = create_database_engine(sqlite_database_url(Path("video.sqlite")))
create_schema(engine)
store = SqlAlchemyVideoActionSetStore(create_session_factory(engine))
For runtime composition:
from zeromodel.persistence.sqlalchemy import build_sqlite_runtime
runtime = build_sqlite_runtime("sqlite:///video.sqlite", initialize_schema=True)
Validation
Package-local tests cover import isolation, explicit schema creation, SQLite foreign keys, in-memory Store parity for identity and episode plans, transaction rollback on batch conflicts, MatrixBlob deduplication/conflict handling, observation operation filters, database reopen behavior, tamper detection, and runtime composition.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 zeromodel_sqlalchemy-1.2.0-py3-none-any.whl.
File metadata
- Download URL: zeromodel_sqlalchemy-1.2.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e8b5dff8fc7d7bd32dd0f81961e031d98e2a0607815127c81d93bad3b4add4a
|
|
| MD5 |
920ef87e938e6ff4ddf99695543fa5c4
|
|
| BLAKE2b-256 |
ecc64af86fcdd4b7c7323d228f5329993d4e04e579c7bf446af15fda93979884
|