Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

metaformat

Experimental alpha. Not a frozen protocol specification.

metaformat is a small locus/relation engine for turning heterogeneous source records into attributable semantic facts without destructively replacing the source representation.

The motivating model is:

raw record + sparse relation sets
        |
        v
attributable semantic facts
        |
        v
cheap deterministic joins and comparisons

A semantic fact retains a reversible route back toward the source:

fact -> locus -> record -> origin -> affordance -> authority resolver

Core ideas

  • Loci identify a path inside an interpretation/source context.
  • Relative loci let a relation set attach mid-context and remain relocatable.
  • Sparse relation sets attach meaning, normalization, provenance, modality, affordances, authority references, and other open-ended relations to loci.
  • Content-addressed relation sets make interpretations versionable without requiring mutable global schema IDs.
  • Semantic facts retain both raw and normalized values plus source/provenance information.
  • Cross-source joins operate on semantic coordinates such as (subject, concept) after mappings have been established.
  • Unknown relation names remain ordinary data; partial understanding should not invalidate the rest.

Example

from metaformat import emit_facts, seal_relation_set

profile = seal_relation_set({
    "base": {"context": "ctx:example", "path": "/devices/*"},
    "relations": {
        ".": [
            ["identity_by", {"path": "./id", "prefix": "device:"}],
        ],
        "./active": [
            ["means", "runtime:active"],
            ["normalize", "runtime:active-bool"],
        ],
    },
})

raw = {
    "devices": [
        {"id": "alpha", "active": "active"},
    ]
}

facts = emit_facts(raw, [profile], context="ctx:example")

Status

This package began as an experimental kernel for a broader Metaformat idea: preserving interpretability, meta-addressability, provenance, semantic pluralism, composability, modality, affordances, authority separation, and partial intelligibility across heterogeneous information systems.

The current release intentionally implements only the small reusable kernel that has survived practical experiments so far. Expect API changes during the alpha series.

License

Apache-2.0.

Metadata

Release files for metaformat 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metaformat 0.1.0a1
File Size Uploaded Provenance Actions
metaformat-0.1.0a1.tar.gz 10.9 kB With provenance Details for metaformat-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metaformat 0.1.0a1
File Interpreter ABI Platform Actions
metaformat-0.1.0a1-py3-none-any.whl Python 3 none any Details for metaformat-0.1.0a1-py3-none-any.whl

Total release size: 22.0 kB

Release files / metaformat-0.1.0a1.tar.gz

Download URL metaformat-0.1.0a1.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4cd7b9e960a9c834d4e34e1ac5de6ece32b4857c77ddf33fde1f969b21613ba5
BLAKE2b-256 checksum
How to use checksums
6c78f44f1efadcba1188057e25e89b23100a2d1cd9db2eb4ae288d153bc5dbc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / metaformat-0.1.0a1-py3-none-any.whl

Download URL metaformat-0.1.0a1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3f296fca94466fc2c59f582aa4618748df2f25fd42d989649df884dbe0a30bb
BLAKE2b-256 checksum
How to use checksums
6d07be987ef5835f45b0fd7f813b4e68297bd046589a9117676247e4b4eaa319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for metaformat 0.1.0a1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for metaformat-0.1.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release
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