Back to directory

Dataclasses Avro Schema

A Python library that generates Avro schemas from dataclasses, Pydantic models, and Faust records, and serializes or deserializes instances against those schemas.

Dataclasses Avro Schema

Dataclasses Avro Schema generates Avro schemas from Python dataclasses, Pydantic models, and Faust Records, and can also generate code from existing Avro schemas. It serializes and deserializes Python instances to and from Avro and Avro-JSON payloads, and integrates with Pydantic by replacing BaseModel with its own AvroBaseModel.

The library ships example projects for streaming with Kafka, using both an async aiokafka client and the synchronous kafka-python driver with Avro-JSON serialization and FULL-compatibility schema evolution, as well as Redis Streams examples using walrus and redisgears-py. An optional factory feature, enabled through the faker extra, generates fake instances for testing data pipelines.

It requires Python 3.10 or newer, installs via pip or poetry, and offers optional extras for Pydantic, Faust, faker-based fixtures, and a dc-avro command-line interface.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.