titus.util.avscToPretty

titus.util.avscToPretty(avsc, indent=0)[source]

Turn an Avro type from Pythonized JSON into a more human-readable PrettyPFA string.

Parameters:
  • avsc (Pythonized JSON) – Avro type schema
  • indent (non-negative integer) – number of spaces to indent (default 0)
Return type:

string

Returns:

PrettyPFA representation