-Python-Avro Codegen Proposal
Tal Levy 2013-06-03, 05:28
I recently started using Avro at my work and we found it difficult to keep
track of what python dict matched to what schema. Instead of having
random dicts being populated and then attempted to be serialized to avro, I
it would be more readable and less error prone to codegen the python dict
for developers. These classes are type checked field by field. Although it
have the advantage of compiled type checking like in the java codegen, it
friendly wrapper around python dicts representing avro records to be
let me know what you think about this, I am still tweaking how it behaves.
I understand it is a bit unpythonic to enforce types in this way, but the
is worth it nonetheless.
here is an example record:
I extended the avro compiler/tools to provide both java and python codegen
so if this sounds like something others would use, maybe it makes sense to
into the main repo.
Stefan Krawczyk 2013-06-04, 01:28
Philip Zeyliger 2013-06-04, 18:24
Tal Levy 2013-06-04, 20:54
Philip Zeyliger 2013-06-05, 00:16
Tal Levy 2013-06-05, 00:58