Here is the gist for the script and an example AVRO packet.
To generate a lightcurve from the AVRO alert packet for the ZTF object run the plot_ztf_lightcurve_from_avro.py
script with the following usage:
python plot_ztf_lightcurve_from_avro [-o] <avrofile>