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. Three more (get_latest, list_latest, list_predecessors) 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(...)

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.domainSchema, 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

schematalog_core-0.1.0.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

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

schematalog_core-0.1.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file schematalog_core-0.1.0.tar.gz.

File metadata

  • Download URL: schematalog_core-0.1.0.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

File hashes

Hashes for schematalog_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d21fcb76eab74a79ac23ee74c4795919e91776ea4dce5ace97ee757c9d6d95a
MD5 1dd51ad367a83b1854a8b4bb3c93e32c
BLAKE2b-256 90cf246917cc6671cad47c3d90af040c774dd0e3753e8e3d5c1464367d72d71d

See more details on using hashes here.

File details

Details for the file schematalog_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: schematalog_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

File hashes

Hashes for schematalog_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edff6b376844ddea28a0442c2ecd2b64d5d812a02871f36aba794505e8822749
MD5 6d5c4e0ce8e5b455c9fcf0e938223416
BLAKE2b-256 6c7c4086c764173fd155406dd774c7270578111174b83c84a4907b3e2c6c2d51

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

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