Python serialization library for Apicurio Registry
Project description
apicurio-serdes
Python serialization library for Apicurio Registry.
Provides Avro serializers that fetch and cache schemas from an Apicurio Registry v3 instance, with support for both sync and async usage. Two wire formats are supported: the Confluent-compatible payload framing and Apicurio's Kafka-headers mode.
Feature status
| Feature | Status |
|---|---|
Sync registry client (ApicurioRegistryClient) |
Shipped |
Async registry client (AsyncApicurioRegistryClient) |
Shipped |
Avro serializer (AvroSerializer) |
Shipped |
Avro deserializer (AvroDeserializer) |
Shipped |
| Confluent wire format (magic byte + globalId) | Shipped |
| Kafka-headers wire format | Shipped |
Installation
pip install apicurio-serdes
Quick start
Sync client
from apicurio_serdes import ApicurioRegistryClient
client = ApicurioRegistryClient(
url="http://localhost:8080/apis/registry/v3",
group_id="com.example.schemas",
)
cached = client.get_schema("UserEvent")
# cached.schema — parsed Avro schema dict (fastavro-ready)
# cached.global_id — Apicurio globalId
# cached.content_id — Apicurio contentId
Async client
from apicurio_serdes import AsyncApicurioRegistryClient
client = AsyncApicurioRegistryClient(
url="http://localhost:8080/apis/registry/v3",
group_id="com.example.schemas",
)
cached = await client.get_schema("UserEvent")
Wire formats
from apicurio_serdes import WireFormat
# Magic byte (0x00) + 4-byte globalId prefix — Confluent-compatible
WireFormat.CONFLUENT_PAYLOAD
# Raw Avro bytes; schema ID carried in a Kafka message header
WireFormat.KAFKA_HEADERS
Contributing
See CONTRIBUTING.md for dev setup, coding standards, and how to submit a pull request.
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apicurio_serdes-0.5.0.tar.gz.
File metadata
- Download URL: apicurio_serdes-0.5.0.tar.gz
- Upload date:
- Size: 412.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2d6dcb33320cb833fd8b325d3df9640521b693584ee420303f9783d2e804e4b
|
|
| MD5 |
6c82bf7cbe27411103e9479e2157de75
|
|
| BLAKE2b-256 |
5ddc970e3218159b30a95f2b28e9f79beb90d12caaed3a24ade7061b8a932853
|
Provenance
The following attestation bundles were made for apicurio_serdes-0.5.0.tar.gz:
Publisher:
publish.yml on jcbianic/apicurio-serdes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
apicurio_serdes-0.5.0.tar.gz -
Subject digest:
b2d6dcb33320cb833fd8b325d3df9640521b693584ee420303f9783d2e804e4b - Sigstore transparency entry: 1189214554
- Sigstore integration time:
-
Permalink:
jcbianic/apicurio-serdes@134434545b15836e37d13c5d1c19cdaea2da907d -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/jcbianic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@134434545b15836e37d13c5d1c19cdaea2da907d -
Trigger Event:
release
-
Statement type:
File details
Details for the file apicurio_serdes-0.5.0-py3-none-any.whl.
File metadata
- Download URL: apicurio_serdes-0.5.0-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e1a7644e0e047fec04945f6050bfe841ece0638d6393afd99723e82be349352
|
|
| MD5 |
00db4833e4387bfd91920c4d34ab2fc8
|
|
| BLAKE2b-256 |
f973ce62d388c7aec6245ed630d3e4a5617d01faade0394dcbe27f6f16b1df74
|
Provenance
The following attestation bundles were made for apicurio_serdes-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on jcbianic/apicurio-serdes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
apicurio_serdes-0.5.0-py3-none-any.whl -
Subject digest:
2e1a7644e0e047fec04945f6050bfe841ece0638d6393afd99723e82be349352 - Sigstore transparency entry: 1189214558
- Sigstore integration time:
-
Permalink:
jcbianic/apicurio-serdes@134434545b15836e37d13c5d1c19cdaea2da907d -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/jcbianic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@134434545b15836e37d13c5d1c19cdaea2da907d -
Trigger Event:
release
-
Statement type: