SNEWS Publishing Tool
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.
Metadata
Release files for snews-pt 3.0.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 | Provenance | Actions |
|---|---|---|---|---|
| snews_pt-3.0.0.tar.gz | 21.9 kB | Without provenance | Details for snews_pt-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snews_pt-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for snews_pt-3.0.0-py3-none-any.whl |
Total release size: 51.3 kB
Release files / snews_pt-3.0.0.tar.gz
| Download URL | snews_pt-3.0.0.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f062615a512c22b49f17a1e77af7fbe2c58205629cb7440ae924895df7af20c2
|
|
BLAKE2b-256 checksum How to use checksums |
e414242a43d4a4a54352865bb9678fd9e4def1ad9204a2fb0e26667991ce2970
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / snews_pt-3.0.0-py3-none-any.whl
| Download URL | snews_pt-3.0.0-py3-none-any.whl |
|---|---|
| Size | 29.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0e5dda58791bde61c6985b1cb6521410652a0185b09e922c51690496c23af2a
|
|
BLAKE2b-256 checksum How to use checksums |
53d20bd18bddafb2c2025e354d6a25bfd12801d962f7d4678c77126e0f72ba96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for snews-pt 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.