Skip to main content

Core Registry Client

Python client SDK for interacting with the Schema Registry Service.

Installation

pip install core-registry-client

Quick Start

from core_registry_client import RegistryClient

# Initialize client
client = RegistryClient(base_url="http://localhost:8000")

# Get schema index
index = await client.get_index()

# Fetch specific schema
schema = await client.fetch_schema("v1", "telemetry.FeedbackEvent")

# Negotiate best version
result = await client.negotiate(
    name="telemetry.FeedbackEvent",
    prefer="v2",
    fallback="v1",
)

# Check compatibility
compat = await client.check_compatibility(
    name="telemetry.FeedbackEvent",
    from_track="v1",
    from_version="v1.2.0",
    to_track="v2",
    to_version="v2.0.0",
)

API Reference

RegistryClient

Main client class for interacting with the registry.

Methods

  • get_index() - Get complete registry index
  • fetch_schema(track, name, version=None) - Fetch schema by track and name
  • fetch_schema_by_id(schema_id) - Fetch schema by global ID
  • list_versions(track, name) - List all versions of a schema
  • check_compatibility(name, from_track, from_version, to_track, to_version) - Check compatibility
  • negotiate(name, prefer, fallback, supports_tracks=None) - Negotiate best version
  • upload_schema(...) - Upload schema (requires admin token)
  • sync_schemas(source, ref=None, path=None) - Trigger sync (requires admin token)

Examples

See examples/ directory for more usage examples.

License

MIT License

Metadata

Release files for core-registry-client 0.2.0

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

Source distribution (sdist)

Source distribution for core-registry-client 0.2.0
File Size Uploaded
core_registry_client-0.2.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for core-registry-client 0.2.0
File Interpreter ABI Platform
core_registry_client-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / core_registry_client-0.2.0.tar.gz

Download URL core_registry_client-0.2.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5d30d5e931a385a7ab71c1a0dc2340f7def34b07277507b6ca05122946fcd339
BLAKE2b-256 checksum
How to use checksums
396a1b92099fe65abdf6d943528c64c3fbd3d246e1d55ea41916d261b6a5b62a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / core_registry_client-0.2.0-py3-none-any.whl

Download URL core_registry_client-0.2.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30b4dca6161d51f91255388274da6596869977455e8e902e9c9e2146065df341
BLAKE2b-256 checksum
How to use checksums
48914ebffc561a31d88de2590c4fec12555105e7dd47d2f1f9ec592b85eecfb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.2.0 This release

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