Skip to main content

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.

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-3.0.0.tar.gz (21.9 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-3.0.0-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snews_pt-3.0.0.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for snews_pt-3.0.0.tar.gz
Algorithm Hash digest
SHA256 f062615a512c22b49f17a1e77af7fbe2c58205629cb7440ae924895df7af20c2
MD5 34f16c7e9527280e9a39070ac01afe06
BLAKE2b-256 e414242a43d4a4a54352865bb9678fd9e4def1ad9204a2fb0e26667991ce2970

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snews_pt-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for snews_pt-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0e5dda58791bde61c6985b1cb6521410652a0185b09e922c51690496c23af2a
MD5 c7b4422f7980406f5277a9f7f6067f39
BLAKE2b-256 53d20bd18bddafb2c2025e354d6a25bfd12801d962f7d4678c77126e0f72ba96

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 files

2.2.0

2 files

2.1.0

2 files

2.0.1

2 files

1.3.4

2 files

1.3.3

2 files

1.3.2

2 files

1.3.1

2 files

1.3.1.dev1

2 files

1.2.1.dev80

2 files

1.2.0

2 files

1.1.1.dev40

2 files

1.0.2.dev45

2 files

1.0.1

2 files

1.0.1.dev3

2 files

1.0.0

2 files

0.0.1.dev360

2 files

0.0.1.dev354

2 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