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

When a git tag is created, the .gitlab-ci.yml pipeline will automatically trigger upload_package.sh, creating a new pypi version.

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-2.0.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

nubium_schemas-2.0.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file nubium-schemas-2.0.0.tar.gz.

File metadata

  • Download URL: nubium-schemas-2.0.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.11

File hashes

Hashes for nubium-schemas-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d9599e978c710f7cb519e8fdf5156004de76c52c41f6407bfde28c7ada7971d7
MD5 083efd4b7a65af7af8eae4338f8fa73a
BLAKE2b-256 febec5aa612aec94bbb45996789cf6a2923156c1ba9ac7c81df6c4501b6b4a3e

See more details on using hashes here.

File details

Details for the file nubium_schemas-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nubium_schemas-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89f4fc8eee5d1215f79f0426dd4ee8ca6139f88c8f27644a2359e86b436d8482
MD5 d7052abdf50f42fe8f369c119ee8fa87
BLAKE2b-256 35e950c2bf15bf9e9db27d18b47b43313ae0e52e3e72d1b502cebb13f4041ead

See more details on using hashes here.

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