Robot Avro Serializer
Robot Avro Serializer is a custom Robot Framework library written in Python to serialize JSON messages into binary Avro format using user-defined schemas.
Features
- ✅ Load Avro schema from
.avscfiles - 🔄 Serialize JSON objects into Avro binary
- 📦 Return binary as hexadecimal string
- 🤖 Seamless integration with Robot Framework
Installation
pip install robotframework AvroSerializer
Usage Example
Robot Test:
*** Settings ***
Library AvroSerializer
*** Variables ***
${SCHEMA_FILE} example_schema.avsc
${JSON_MSG} {"name": "Ana", "age": 30, "email": "ana@email.com"}
*** Test Cases ***
Serialize JSON To Avro
Load Avro Schema From File ${SCHEMA_FILE}
${hex}= Serialize And Return Hex ${JSON_MSG}
Log Serialized Avro Hex: ${hex}
example_schema.avsc
{
"type": "record",
"name": "User",
"fields": [
{ "name": "name", "type": "string" },
{ "name": "age", "type": "int" },
{ "name": "email", "type": ["null", "string"], "default": null }
]
}
Development
git clone https://github.com/darioajr/AvroSerializer.git
cd AvroSerializer
pip install .
License
This project is licensed under the Apache-2.0 License.
Metadata
Release files for AvroSerializer 0.1.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 | |
|---|---|---|---|
| avroserializer-0.1.0.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| avroserializer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / avroserializer-0.1.0.tar.gz
| Download URL | avroserializer-0.1.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10e8d8b5c1d41ecbc665231c39a92dc0b52ee522d005701b73ab76cede4f0cc3
|
|
BLAKE2b-256 checksum How to use checksums |
accb14d68e102eb2afdc5229758ff03a6ba2eabeac3de251f81a05e80c1a5735
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / avroserializer-0.1.0-py3-none-any.whl
| Download URL | avroserializer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
692d36bd110365acf75addec06f15aaca49e7e28fccfc8920b99fe3e3ccfb76c
|
|
BLAKE2b-256 checksum How to use checksums |
823d1b268eb675cdbdec0bf753dc65237ece6e34def8e97db2911c6be70a2556
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|