Skip to main content

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.

Source Distribution

nubium-schemas-0.1.2.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

nubium_schemas-0.1.2-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

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