Skip to main content

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.Alert.avsc') as f:
...     json.load(f)
...
{'name': 'Alert', 'namespace': 'igwn.alerts', 'type': 'record', 'doc': 'Alert schema.', 'fields': [{'name': 'alert_type', 'type': 'igwn.alerts.AlertType', 'doc': 'The type of alert; the possible values are EARLYWARNING, 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.EventInfo'], 'doc': 'Information about the event, if any.'}, {'name': 'external_coinc', 'type': ['null', 'igwn.alerts.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.'}]}

To contribute

This package uses pre-commit to automate code formatting and validation. Before your first commit, run these commands:

pip install pre-commit
pre-commit install

Metadata

Release files for igwn-gwalert-schema 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for igwn-gwalert-schema 1.2.0
File Size Uploaded
igwn_gwalert_schema-1.2.0.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for igwn-gwalert-schema 1.2.0
File Interpreter ABI Platform
igwn_gwalert_schema-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.2 kB

Release files / igwn_gwalert_schema-1.2.0.tar.gz

Download URL igwn_gwalert_schema-1.2.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eb2fbe42c00f8b5d32f91ae257741046897853b0a0e74f5dbcc74df68fbd436b
BLAKE2b-256 checksum
How to use checksums
a346d02d677c79bb162d9bfe7e3fcf5e8f615a2f12d7984bc59d3220a8616d41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / igwn_gwalert_schema-1.2.0-py3-none-any.whl

Download URL igwn_gwalert_schema-1.2.0-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60ac03d0dbdc5a25ac002e8baeab1dae18dbc0906b445d8ea49d82874f5976e0
BLAKE2b-256 checksum
How to use checksums
8ae7d07d374c901c6d608c9af9bb3b6eb3210fba7bf8b9e45470990d017e2e70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page