Skip to content

Instantly share code, notes, and snippets.

View giograno's full-sized avatar
🏋️
StackLifter!

Giovanni Grano giograno

🏋️
StackLifter!
View GitHub Profile
@giograno
giograno / py-avro-test.py
Created August 17, 2025 09:57
Scratch file that demonstrate how to extract an Avro schema from a store definition
import json
import typing
from typing import Type
import py_avro_schema
from py_avro_schema._schemas import RecordSchema, _type_from_annotated, RecordField, Option
from localstack.pro.core.services.codebuild.models import CodeBuildStore
from localstack.services.stores import BaseStore
{
"name": "CannonKeys DB60 Hotswap",
"vendorProductId": 3389315938,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_GRV",
"KC_1",
"KC_2",
"KC_3",