aom-format
This project describes the standard for an AOM (Always On Memory) database, together with a native Python package that implements the standard.
The database is a SQLite .db file. It contains an instantiated ontology, its provenance, and embedding vectors to enable semantic search.
Any software can create such a database, as long as it follows the standard described in docs/aom_format_spec_1.0.1.md. The software that creates the database is the writer; the software that queries it is the reader.
The only thing linking a
writerto areaderis the format described here. Nothing more.
Repository structure
- docs/aom_format_spec_1.0.1.md : the normative contract.
- src/aom_format : a dependency-free Python package that implements the standard.
- tests : the reference conformance tests.
- examples : a runnable script that writes a complete database on disk.
Using the aom-format package
Installation
pip install aom-format
Or clone the repository and install it locally:
git clone https://gitlab.com/hopa_aom/aom_format
cd aom_format
uv sync
Check a database
uv run aom-format check memory.db # errors and warnings
uv run aom-format check *.db --json # one JSON line per database
uv run aom-format check memory.db --strict # also fail on warnings
uv run aom-format version
Print a summary of a database
uv run aom-format summary memory.db
uv run aom-format summary memory.db --json --examples 10
The summary shows the metadata, table counts, node tags and a few example nodes
with their class and degree. --examples N controls how many nodes are shown.
Run the example
uv run python examples/build_example_db.py
uv run aom-format check examples/output/memory.db --strict
The script builds a small graph (memories, node and literal facts, provenance,
node vectors and one artifact) in examples/output/memory.db, then checks it.
Migrating from 0.2.0
1.0.1 is a breaking change: system_state becomes db_info,
pivots and artifact nodes are kept through tags and the artifacts table.
node_embeddings
becomes nodes (with node_class and node_label), triplets loses
subject_class, object_class, subject_tag and object_tag, and
object_label becomes object_value. memories.created_at is back. Literals
must be in canonical form (aom_format.literals.make). See
docs/changelog.md.
memory_embeddings is folded
into memories.embedding, and writer tables are no longer allowed. Migration
belongs to the writer; schema.create() refuses a database stamped with another
schema version. See docs/changelog.md.
Metadata
Release files for aom-format 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aom_format-1.0.1.tar.gz | 22.9 kB | Without provenance | Details for aom_format-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aom_format-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for aom_format-1.0.1-py3-none-any.whl |
Total release size: 50.3 kB
Release files / aom_format-1.0.1.tar.gz
| Download URL | aom_format-1.0.1.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
619098095ef25fd663ad88b865061c0fddcf7120f54f658d207917d985ee6622
|
|
BLAKE2b-256 checksum How to use checksums |
556af4ca029d9429d74c086a59a9bb6793a8556593a7bcad06fae8501de318bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / aom_format-1.0.1-py3-none-any.whl
| Download URL | aom_format-1.0.1-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37b188f6295f5382f5bd758a3819388141ce0ef58cb4dd6841784ef3350b5c59
|
|
BLAKE2b-256 checksum How to use checksums |
8e1e3890dad472f92bea48a61f2e9733cbeb3c476e3d927a12f45a2315632937
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for aom-format 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.