Skip to main content

SNEWS Data Formats

snews-data-formats-CI

This package contains common data models and utilities for standardizing data formats across SNEWS packages.

Features

  • Data models for key SNEWS data types like messages and timestamps with validation via Pydantic
  • Message models for different tiers like heartbeat, retraction, timing, significance, and coincidence
  • Utilities for handling nanosecond timestamps and leap seconds
  • Static data for supported detectors
  • Generation of JSON schemas for data models
  • Comprehensive testing suite

Getting Started

If you don't have poetry, install that first.

Install the package:

poetry install

Use it in your code:

from snews.models.messages import SignificanceTierMessage

message = SignificanceTierMessage(
    detector_name="Super-K",
    p_values: [0.43, 0.32, 0.01],
    t_bin_width_sec: 5e-3
)

print(message.model_dump())

See the documentation for more details on the available data models and utilities.

See snews/examples for ipython notebooks.

Contributing

Contributions are welcome!

Metadata

Release files for snews-data-formats 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snews-data-formats 1.1.1
File Size Uploaded Provenance Actions
snews_data_formats-1.1.1.tar.gz 16.8 kB Without provenance Details for snews_data_formats-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snews-data-formats 1.1.1
File Interpreter ABI Platform Actions
snews_data_formats-1.1.1-py3-none-any.whl Python 3 none any Details for snews_data_formats-1.1.1-py3-none-any.whl

Total release size: 43.5 kB

Release files / snews_data_formats-1.1.1.tar.gz

Download URL snews_data_formats-1.1.1.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
64466592891b63c0925ebe556a78b4d948026dd2e4b9dba7177f660c71e2ceec
BLAKE2b-256 checksum
How to use checksums
81169da4f6a7127b5eb15601d411a572d765cbcb35606682b77961b1e78407a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.6 Darwin/23.5.0

Release files / snews_data_formats-1.1.1-py3-none-any.whl

Download URL snews_data_formats-1.1.1-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f9ea218cb21b06e1cebb7d6d871445ab736af054e1e25956036b9bc262de394
BLAKE2b-256 checksum
How to use checksums
2cf6919662dbfccbca3b3a9d43bb2d110636fb6fb5340694e6849259fc5dedc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.6 Darwin/23.5.0

Security for snews-data-formats 1.1.1

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.

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