marcosschroh/dataclasses-avroschema
Generate avro schemas from python dataclasses, Pydantic models and Faust Records. Code generation from avro schemas. Serialize/Deserialize python instances with avro schemas.
Supports bidirectional serialization with multiple formats (binary Avro, Avro-JSON, and standard JSON) while maintaining schema validation through nested dataclass composition. Integrates a CLI tool (`dc-avro`) for reverse-engineering Python models from existing Avro schemas, enabling schema-first workflows. Built on a declarative metadata system via `Meta` classes that maps Python type annotations to Avro logical types, with first-class support for enums, unions, maps, and optional fields.
249 stars.
Stars
249
Forks
75
Language
Python
License
MIT
Category
Last pushed
Mar 06, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/marcosschroh/dataclasses-avroschema"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
twitter/scrooge
A Thrift parser/generator
sbt-dao-generator/sbt-dao-generator
code generator sbt plugin from database schema
olafurpg/scala-db-codegen
Scala code/boilerplate generator from a db schema
Chymyst/curryhoward
Automatic code generation for Scala functions and expressions via the Curry-Howard isomorphism
GW2ToolBelt/api-generator
A library for creating programs that interface with data exposed by the official Guild Wars 2 API.