AvroSerializer is a serialization and RPC framework.
Project description
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.
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 avroserializer-0.1.0.tar.gz.
File metadata
- Download URL: avroserializer-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10e8d8b5c1d41ecbc665231c39a92dc0b52ee522d005701b73ab76cede4f0cc3
|
|
| MD5 |
e5b73405042f6f9566c97aae88321a54
|
|
| BLAKE2b-256 |
accb14d68e102eb2afdc5229758ff03a6ba2eabeac3de251f81a05e80c1a5735
|
File details
Details for the file avroserializer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: avroserializer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
692d36bd110365acf75addec06f15aaca49e7e28fccfc8920b99fe3e3ccfb76c
|
|
| MD5 |
ebeab1ee504c3ae89ccec23b090b63ea
|
|
| BLAKE2b-256 |
823d1b268eb675cdbdec0bf753dc65237ece6e34def8e97db2911c6be70a2556
|