Skip to main content

Bind SQLAlchemy ORM operations to the AlgoVoi keystone -- each persisted change gets a content-addressed execution_ref (keystone-only edition, Apache-2.0)

Project description

algovoi-keystone-sqlalchemy

Keystone Integration

Bind SQLAlchemy ORM operations to the AlgoVoi keystone -- each persisted change (insert / update / delete) gets a content-addressed execution_ref. Open, keystone-only edition, Apache-2.0. Byte-compatible with algovoi-execution-ref.

from sqlalchemy.orm import Session
from algovoi_keystone_sqlalchemy import bind_session

s = Session(engine)
bind_session(s, decision_ref="sha256:...")      # registers an after_flush listener
s.add(Order(id=1)); s.flush()
s.info["keystone_executions"]   # [{operation:"insert", table:"orders", execution_ref, ...}]

Or standalone: orm_execution_ref(decision_ref=..., operation="insert", table="orders", outcome="COMMITTED", executed_at_ms=...). SQLAlchemy is an optional dependency, imported only by bind_session.

A failed operation is recorded with outcome FAILED; tamper_detected(...) recomputes any binding offline.

Keystone-only edition

The open edition binds and verifies each operation. The signed, hash-linked chain of operations (PQC + CCC ingest) is the commercial tier.

License

Apache-2.0. Copyright AlgoVoi.

Project details


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 Distributions

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

algovoi_keystone_sqlalchemy-0.2.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (208.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

algovoi_keystone_sqlalchemy-0.2.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (240.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

algovoi_keystone_sqlalchemy-0.2.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (201.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

algovoi_keystone_sqlalchemy-0.2.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (191.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

File details

Details for the file algovoi_keystone_sqlalchemy-0.2.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_sqlalchemy-0.2.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69663363de271400ef24b6fd5b35737c02d61e33f999d25383ad28bab387f052
MD5 f803cb9f8b71635bbf800023dbc4c350
BLAKE2b-256 01c1facfdd7d0d9ae1b006d0e9842acc262f6ef89a0336874ef2f11d09cfa274

See more details on using hashes here.

File details

Details for the file algovoi_keystone_sqlalchemy-0.2.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_sqlalchemy-0.2.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e3ba2aeb928750eac993812d841688ebd03fd958fc55d98fec1f39ba6236383
MD5 dc473fdbf28f1361dc707994df5f37ee
BLAKE2b-256 c09abbcac4d620e6490c9ad222220e100d62fc1ea44e7be9e1d1ba5b3bb870da

See more details on using hashes here.

File details

Details for the file algovoi_keystone_sqlalchemy-0.2.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_sqlalchemy-0.2.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0d36b0b75e1cf93b5f345b85f2e89dcf6417454beba18715ba2bd0adca9e4a4
MD5 913f2f388c66a754038f1973a8e9b2ab
BLAKE2b-256 9719eda7d3f45a8aebff90849083755bf0ecb2ca80b0934a172e5cd5a2a89f29

See more details on using hashes here.

File details

Details for the file algovoi_keystone_sqlalchemy-0.2.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_sqlalchemy-0.2.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99c1b799327d5a3e40a7d1bb5fc4ce87ffc53e1b5b4bf035911e8b090b723b76
MD5 af70d73fb6273edc07777935044a8b6b
BLAKE2b-256 faae03ed168e8c9bb892fdd4b876a3e647c433afbbee85734dc286aca920a6ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page