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-2.2.0.tar.gz (19.8 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.2.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for snews_pt-2.2.0.tar.gz
Algorithm Hash digest
SHA256 143b56e9a578a73b7204bfdbc78190a6744b9e867cfd49baddc5cacb8a743320
MD5 83d5a38d5d5119df1412e84ba0f0460e
BLAKE2b-256 3725160d3ec1d1347c3f1bde90e7b2747d4e660096a56e74ee1b41770f300a07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snews_pt-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.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-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c6f4c513dd99c8426477985a79b9fcddd1da69e21f355d080dee03d89273ad4
MD5 77ffe199a7a15919505c38d0bf1210f1
BLAKE2b-256 27a2365d4004288702740a4a111c1f860eb2ea54d0c8c91ee6c326c687831402

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.0

2 files

This release

2.2.0 This release

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