Skip to main content

An alert application for observing supernovas

Project description

SNEWS Publishing Tool

snews_logo

Documentation Status tests PyPI arXiv

This package provides users with a Python API and CLI to publish observation messages to SNEWS and subscribe to receive alerts from the SNEWS servers.

The SNEWS Publishing Tools are fully documented at snews-publishing-tools.readthedocs.io.

Before you begin:

  • Ensure your hop credentials are set up!
  • Follow the instructions in the Quick Start guide.

Fire Drills

We carry out regular multi-experiment fire drills to test the publishing tools. Fire drills are documented on this page.

The snews_pt library uses fire-drill mode as its default option. If not desired, it can be disabled using the firedrill_mode=True/False arguments in the subscription and publication functions, or through the --firedrill/--no-firedrill flags within the CLI tools.

To publish and/or subscribe to the fire drill channels, please ensure you have the correct hop permissions.

How to Install the SNEWS Publishing Tools

Detailed installation instructions are provided in our Installation Guide.

We recommend that you install SNEWS the publishing tools PyPI package (snews_pt) using pip:

pip install snews_pt

To minimize conflicts with other Python packages, we suggest you set up a dedicated environment using virtualenv, conda, or another tool used to create isolated Python environments. Also, note that the SNEWS software requires Python v3.11 or higher at the moment, so be sure to set up your enviornment with a new enough version.

How to Publish and Subscribe

Publishing

A main purpose of this software is to publish messages to the SNEWS server for the formation of coincident alerts. The exact protocols and interface are described in our Publishing Guide. Please also see our paper on the publishing tools: M. Kara et al., JINST 19:P10017, 2024.

Subscribing

The snews_pt package provides easy "read-only" subscriptions to alert topics, and allows subscribers to receive alerts in real time. See the Subscription Guide for detailed instructions.

Command Line Interface (CLI)

Tools for command line interactions with the snews_pt library are available, and are explained in our guide to the CLI Tools.

Remote Commands and More

The SNEWS server allows for several remote commands. Some of them are meant only for the developers of snews_pt and are not intended for regular users. However, there are a few useful functionalities that the user can exploit to test their connections to the SNEWS 2.0 coincidence server.

The available functions are detailed in our Remote commands guide.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

snews_pt-2.1.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

snews_pt-2.1.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file snews_pt-2.1.0.tar.gz.

File metadata

  • Download URL: snews_pt-2.1.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.6 Darwin/23.5.0

File hashes

Hashes for snews_pt-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a32a52a2c77afeb68a75799811bd83fd4d530199121869574abf94ab0fd86f14
MD5 ee848623c678cbdcca355b81f2a1c4dc
BLAKE2b-256 41b4afd539f267b5a06198e1a7a276f3409ae8b13d2b8b4348c52aed863db383

See more details on using hashes here.

File details

Details for the file snews_pt-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: snews_pt-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.6 Darwin/23.5.0

File hashes

Hashes for snews_pt-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0d70491e0f374b9221e01c3feb21d23e301d90c18624764a584da3bede5a75
MD5 4c36ae258fe9327e0baaae2259640b0c
BLAKE2b-256 ca4a1c4145da60ccdabee263e4ddc2bece690e9a0302c4e8033330f29ef774f5

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