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)
| File | Size | Uploaded | |
|---|---|---|---|
| igwn_gwalert_schema-1.2.0.tar.gz | 18.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|