Home > Hadrian >

The titus.prettypfa module has functions for generating PFA at any stage of its life cycle.

Also, you may have noticed that the input and output type specifications in PrettyPFA are not Avro schema, unlike PFA. The intention is to make them easier to write. However, some datasets already have conventional Avro schema, so Titus has a function to convert Avro schema to PrettyPFA snippets.

If your Avro schema is stored in a file, you can use:

>>> import json
>>> avscToPretty(json.load(open(fileName)))