Skip to main content

Bind MongoDB writes to the AlgoVoi keystone -- wrap any pymongo collection and every write gets a content-addressed execution_ref (keystone-only edition, Apache-2.0)

Project description

algovoi-keystone-mongo

Keystone Integration

Bind MongoDB writes to the AlgoVoi keystone -- every write on a wrapped pymongo collection gets a content-addressed execution_ref. Open, keystone-only edition, Apache-2.0. Byte-compatible with algovoi-execution-ref. Available on request -- see https://docs.algovoi.co.uk/keystone-connectors

from algovoi_keystone_mongo import keystone_collection

orders = keystone_collection(db.orders, decision_ref="sha256:...")
orders.insert_one(doc)
orders.execution_ref   # binds that write (scope = db.collection) to the keystone decision

Wraps write methods (insert_one/many, update_one/many, replace_one, delete_one/many, bulk_write, find_one_and_*); reads (find, aggregate, ...) pass through untouched. A failed write is recorded FAILED. No pymongo dependency. Or compute standalone with mongo_execution_ref(...).

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 Distribution

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

algovoi_keystone_mongo-0.1.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_keystone_mongo-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_keystone_mongo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a750860b91146699e7d876cf150fef711e4a7179673ae132dce3ee06433b8c81
MD5 bffcdea62fbfd8a25cc4a59c608109c5
BLAKE2b-256 56e57c9c3d9f98048184ca75ea29f221e913c60878811d94c49f50307f722281

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