jpmorganchase / py-avro-schema

Generate Apache Avro schemas for Python types including standard library data-classes and Pydantic data models.
https://py-avro-schema.readthedocs.io/
Apache License 2.0
37 stars 6 forks source link

Request: use fastavro #55

Closed dada-engineer closed 1 year ago

dada-engineer commented 1 year ago

Is there a way to support fastavro? Can avro be replaced by this or do both libs need to be supported? Why is avro used not fastavro?

dada-engineer commented 1 year ago

Ah sorry just saw this is used in tests only. Nevermind 🙈

faph commented 1 year ago

@dabdada It's not just used in tests though. We use the avro package for their schema data structures (Python classes) as it seems decent.

Of course, you're welcome to install fastavro alongside to the actual serialization/deserialization. That's what I would recommend.