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
FaustSerializerclass
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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| nubium-schemas-2.0.0.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|