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
- Import one of the schema dictionaries from the package
- Dump the dictionary to a string using
json.dumps
- Define a serializer using the
FaustSerializer
class
Confluent Kafka
- Import the schema dictionary
- Dump the schema to a string using
json.dumps
- Create a schema object using
confluent_kafka.avro.loads
- Use the schema when instantiating Avro producer and consumer clients
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9599e978c710f7cb519e8fdf5156004de76c52c41f6407bfde28c7ada7971d7 |
|
MD5 | 083efd4b7a65af7af8eae4338f8fa73a |
|
BLAKE2b-256 | febec5aa612aec94bbb45996789cf6a2923156c1ba9ac7c81df6c4501b6b4a3e |
File details
Details for the file nubium_schemas-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: nubium_schemas-2.0.0-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89f4fc8eee5d1215f79f0426dd4ee8ca6139f88c8f27644a2359e86b436d8482 |
|
MD5 | d7052abdf50f42fe8f369c119ee8fa87 |
|
BLAKE2b-256 | 35e950c2bf15bf9e9db27d18b47b43313ae0e52e3e72d1b502cebb13f4041ead |