Skip to main content

JSON and Avro Schema for gravitational-wave alerts

Project description

igwn-gwalert-schema

JSON and Avro Schema for gravitational-wave alerts.

To install

$ pip install igwn-gwalert-schema

To use

$ python
>>> from importlib import resources
>>> import json
>>> with resources.open_text('igwn_gwalert_schema', 'igwn.alerts.v1_0.Alert.avsc') as f:
...     json.load(f)
... 
{'name': 'Alert', 'namespace': 'igwn.alerts.v1_0', 'type': 'record', 'doc': 'Alert schema v1.0.', 'fields': [{'name': 'alert_type', 'type': 'igwn.alerts.v1_0.AlertType', 'doc': 'The type of alert; the possible values are EARLY_WARNING, PRELIMINARY, INITIAL, UPDATE, RETRACTION.'}, {'name': 'time_created', 'type': 'string', 'doc': 'The time this notice was created in ISO 8601 format.'}, {'name': 'superevent_id', 'type': 'string', 'doc': 'The GraceDB superevent ID.'}, {'name': 'event', 'type': ['null', 'igwn.alerts.v1_0.EventInfo'], 'doc': 'Information about the event, if any.'}, {'name': 'external_coinc', 'type': ['null', 'igwn.alerts.v1_0.ExternalCoincInfo'], 'doc': 'Information about the coincidence with an non-GW event, if any.'}, {'name': 'urls', 'type': {'type': 'map', 'values': 'string', 'default': {}}, 'doc': 'URLs relevant to the event, if any.'}]}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

igwn_gwalert_schema-1.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

igwn_gwalert_schema-1.1.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file igwn_gwalert_schema-1.1.0.tar.gz.

File metadata

  • Download URL: igwn_gwalert_schema-1.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for igwn_gwalert_schema-1.1.0.tar.gz
Algorithm Hash digest
SHA256 35a022233606d7a5cd355882e8b0a53509c6151f4c6629721f4c26c704437d5c
MD5 c5b1a0f7971021ac2421afd685ed9530
BLAKE2b-256 b544c08108f16157aeb7a0fe00cdb65bde8876d432289ad3f297ba38996f0d25

See more details on using hashes here.

File details

Details for the file igwn_gwalert_schema-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for igwn_gwalert_schema-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f21fc0a9a9ee481d70c45146327e8fe243a9ae11a95efa12e0552685a44528d
MD5 8d54bd0031270b4d3683102d460f73e8
BLAKE2b-256 c85dc6762dd7ebfa1407273b9b50043a58d6ec5a7539270fb7ab49514791aee9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page