Skip to main content

schematalog-core

The domain contract for Schematalog, a registry and catalog for JSON Schema specifications — and the conformance suite that goes with it.

This is what a storage backend codes against. It deliberately does not depend on the registry application, so implementing a backend does not oblige you to install a web framework.

pip install "schematalog-core[testing]"

Writing a storage backend

A backend implements five methods — add, get, set_metadata, list_versions and list_names. Four more (get_latest, list_latest, list_predecessors, list_labels) are derived for you by SchemaRepository, including the rule for which version counts as latest, so you inherit that rather than reimplementing it. Override them only if your store can answer them better.

The contract is written as tests. Subclass it, supply one fixture yielding an empty repository, and it tells you whether your backend is correct:

import pytest
from schematalog.testing import SchemaRepositoryConformance

class TestMyBackend(SchemaRepositoryConformance):
    @pytest.fixture
    def repository(self):
        return MyRepository(...)

Every case in the suite is async def, so turn on pytest-asyncio's automatic mode, or none of them will pass:

[tool.pytest.ini_options]
asyncio_mode = "auto"

Registration is a schematalog.storage entry point naming the URL scheme you answer to; nothing in the registry needs changing. See schematalog-s3 for a complete worked example.

What it contains

  • schematalog.domain — Schema, SchemaRepository, the value objects and errors.
  • schematalog.testing — the conformance suite and a sample schema to test with.
  • schematalog.common — layer-neutral helpers, including a dependency-free JSON Schema ↔ Avro converter.

Metadata

Release files for schematalog-core 0.2.2

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

Source distribution (sdist)

Source distribution for schematalog-core 0.2.2
File Size Uploaded Provenance Actions
schematalog_core-0.2.2.tar.gz 36.7 kB Without provenance Details for schematalog_core-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for schematalog-core 0.2.2
File Interpreter ABI Platform Actions
schematalog_core-0.2.2-py3-none-any.whl Python 3 none any Details for schematalog_core-0.2.2-py3-none-any.whl

Total release size: 69.7 kB

Release files / schematalog_core-0.2.2.tar.gz

Download URL schematalog_core-0.2.2.tar.gz
Size 36.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ab3ca62859f5662586e281155a2470bd42d647be6e2f8bd0e96a6f701761b25c
BLAKE2b-256 checksum
How to use checksums
f2c69cc38c5b6447c515251b561ee98f9b5270b0a510821b1530ae03e067d7ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / schematalog_core-0.2.2-py3-none-any.whl

Download URL schematalog_core-0.2.2-py3-none-any.whl
Size 33.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a26afe2bb146881393bb5234238527a4f49d8afe97ec289704e68f9d8739f439
BLAKE2b-256 checksum
How to use checksums
87c4d7b4e6e022e2c60d3765d1e6e7eceba1b6f93fda31d145d5456c2faca3ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for schematalog-core 0.2.2

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.

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