Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Python dictionary representations of Avro Schema for the nubium project

Project description

A python package containing dictionary representations of Avro Schemas, for use with the nubium project.

Usage Examples

The first step is to include the latest version of the schema library in the requirements for the app. For code examples, go to https://gitlab.corp.redhat.com/ebrennan/python-avro-classes.git

Faust

  1. Import one of the schema dictionaries from the package
  2. Dump the dictionary to a string using json.dumps
  3. Define a serializer using the FaustSerializer class

Confluent Kafka

  1. Import the schema dictionary
  2. Dump the schema to a string using json.dumps
  3. Create a schema object using confluent_kafka.avro.loads
  4. Use the schema when instantiating Avro producer and consumer clients

Project details


Download files

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

Files for nubium-schemas, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size nubium_schemas-0.2.2-py3-none-any.whl (11.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size nubium-schemas-0.2.2.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page