Skip to main content

Python Rest Client to interact against Schema Registry Confluent Server to manage Avro Schemas

Project description

Home-page: https://github.com/marcosschroh/python-schema-registry-client Author: Marcos Schroh Author-email: schrohm@gmail.com License: MIT Download-URL: https://pypi.org/project/python-schema-registry-client/#files Description: # Python Rest Client Schema Registry

[![Build Status](https://travis-ci.org/marcosschroh/python-schema-registry-client.svg?branch=master)](https://travis-ci.org/marcosschroh/python-schema-registry-client) [![GitHub license](https://img.shields.io/github/license/marcosschroh/python-schema-registry-client.svg)](https://github.com/marcosschroh/python-schema-registry-client/blob/master/LICENSE) [![codecov](https://codecov.io/gh/marcosschroh/python-schema-registry-client/branch/master/graph/badge.svg)](https://codecov.io/gh/marcosschroh/python-schema-registry-client) [![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7-blue.svg)](https://img.shields.io/badge/python-3.6%20%7C%203.7-blue.svg)

Python Rest Client to interact against [schema-registry](https://docs.confluent.io/current/schema-registry/index.html) confluent server to manage [Avro Schemas](https://docs.oracle.com/database/nosql-12.1.3.1/GettingStartedGuide/avroschemas.html) resources.

## Requirements

python 3.6+, fastavro, requests

## Installation

`bash pip install python-schema-registry-client `

If you want the Faust functionality:

`bash pip install python-schema-registry-client[faust] `

## Client API, Serializer, Faust Integration and Schema Server description

Documentation: [https://marcosschroh.github.io/python-schema-registry-client.io](https://marcosschroh.github.io/python-schema-registry-client)

## When use this library

Usually, we have a situacion like this:

![Confluent Architecture](docs/img/confluent_architecture.png)

So, our producers/consumers have to serialize/deserialize messages every time that they send/receive from Kafka topics. In this picture, we can imagine a Faust application receiving messages (encoded with an Avro schema) and we want to deserialize them, so we can ask the schema server to do that for us. In this scenario, the MessageSerializer is perfect.

Also, could be a use case that we would like to have an Application only to administrate Avro Schemas (register, update compatibilities, delete old schemas, etc.), so the SchemaRegistryClient is perfect.

## Development

The tests are run against the Schema Server using docker compose, so you will need Docker and Docker Compose installed.

`bash ./scripts/run_tests `

Run code linting:

`bash ./scripts/lint `

Keywords: Schema Registry,Python,Avro,Apache,Apache Avro Platform: UNKNOWN Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.6 Classifier: Topic :: Software Development Description-Content-Type: text/markdown Provides-Extra: faust

Project details


Download files

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

Source Distribution

python-schema-registry-client-1.2.10.tar.gz (15.5 kB view details)

Uploaded Source

File details

Details for the file python-schema-registry-client-1.2.10.tar.gz.

File metadata

  • Download URL: python-schema-registry-client-1.2.10.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0

File hashes

Hashes for python-schema-registry-client-1.2.10.tar.gz
Algorithm Hash digest
SHA256 c7f2e4bd775d829b9e08546329c9418cb800c704ed31af6e3964d23c12b7a6dd
MD5 db559bb9221c95cb7e116e09373d4828
BLAKE2b-256 c75c0b7f94972d7aa75597a4fedd9f70b4e4fe7e972e6be7f257d338d40a1552

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page