Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zeromodel_sqlalchemy-1.2.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file zeromodel_sqlalchemy-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zeromodel_sqlalchemy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e8b5dff8fc7d7bd32dd0f81961e031d98e2a0607815127c81d93bad3b4add4a
MD5 920ef87e938e6ff4ddf99695543fa5c4
BLAKE2b-256 ecc64af86fcdd4b7c7323d228f5329993d4e04e579c7bf446af15fda93979884

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page