An open API service indexing awesome lists of open source software.

https://github.com/compose-x/kafka-schema-registry-admin

Light python client to manipulate Kafka Schema Registry
https://github.com/compose-x/kafka-schema-registry-admin

kafka kafka-schema-registry schema-registry-client

Last synced: 9 months ago
JSON representation

Light python client to manipulate Kafka Schema Registry

Awesome Lists containing this project

README

          

===========================
Kafka schema registry admin
===========================

Simple / light HTTP client library (using requests) to manipulate schemas and definitions into Schema Registry.

* Confluent API specification is documented `here `__

* RedPanda API specification is documented `here `__

.. warning::

RedPanda SR does not have 100% compatibility with Confluent's.
Confluent Cloud specific endpoints not implemented (and no plans to be).

Usage
======

Very simple example to manipulate the schema registry and its resources.
Every function returns the ``requests.Response`` object to allow you to implement any kind of logic from there,
instead of trying to implement it for you.

Non 2xx HTTP codes raise exceptions which are in the ``kafka_schema_registry_admin.client_wrapper.errors``
More specific exceptions will be created in due course to identify exact exceptions.

.. code-block::

from kafka_schema_registry_admin import SchemaRegistry

registry = SchemaRegistry("http://localhost:8081")
subjects = registry.get_all_subjects().json()