Skip to main content

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

Release files for nubium-schemas 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nubium-schemas 2.0.0
File Size Uploaded
nubium-schemas-2.0.0.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nubium-schemas 2.0.0
File Interpreter ABI Platform
nubium_schemas-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.1 kB

Release files / nubium-schemas-2.0.0.tar.gz

Download URL nubium-schemas-2.0.0.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d9599e978c710f7cb519e8fdf5156004de76c52c41f6407bfde28c7ada7971d7
BLAKE2b-256 checksum
How to use checksums
febec5aa612aec94bbb45996789cf6a2923156c1ba9ac7c81df6c4501b6b4a3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.11

Release files / nubium_schemas-2.0.0-py3-none-any.whl

Download URL nubium_schemas-2.0.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89f4fc8eee5d1215f79f0426dd4ee8ca6139f88c8f27644a2359e86b436d8482
BLAKE2b-256 checksum
How to use checksums
35e950c2bf15bf9e9db27d18b47b43313ae0e52e3e72d1b502cebb13f4041ead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.11

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.8

2 release files

0.2.7

3 release files

0.2.6

3 release files

0.2.4

3 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page