Sample CodeΒΆ

This section provides Python sample code for receiving and interacting with Notices. Notices are distributed over Kafka and are available in JSON format from GCN and in Avro format from SCiMMA. Both formats contain the same information.

This tutorial will walk you through writing a Python script to receive and process the example LIGO/Virgo/KAGRA notices that are sent every hour. The tutorial is broken into the following subsections: