Skip to main content

msv4-utils

Lightweight utilities for reasoning about Measurement Set v4. Core functionality depends only on the Python standard library.

Installation

pip install msv4-utils

Usage

Infer the MSv4 backend from a URI

from msv4_utils import infer_backend, MSv4Backend

backend = infer_backend("/path/to/data.ms")
if backend == MSv4Backend.CASA_TABLE:
    # open with xarray-ms
    ...
elif backend == MSv4Backend.ZARR:
    # open with xarray
    ...
elif backend == MSv4Backend.MEERKAT:
    # open with xarray-kat
    ...

MSv4 type constants

from msv4_utils.msv4_types import VISIBILITY_XDS_TYPES

xds_type = xds.attrs["type"]
if xds_type in VISIBILITY_XDS_TYPES:
    print("interferometric data")

Development

uv sync
uv run pytest tests

Metadata

Release files for msv4-utils 0.0.3

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

Source distribution (sdist)

Source distribution for msv4-utils 0.0.3
File Size Uploaded
msv4_utils-0.0.3.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for msv4-utils 0.0.3
File Interpreter ABI Platform
msv4_utils-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 17.3 kB

Release files / msv4_utils-0.0.3.tar.gz

Download URL msv4_utils-0.0.3.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
681363c0e79454536ca748f4235b4b91cd0768433294b7c47575a1c0567d64ac
BLAKE2b-256 checksum
How to use checksums
ca8533638b948df2a5b115a955c67be0845cac532bef711a178060cf2d08883e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2026.

Transparency log

Release files / msv4_utils-0.0.3-py3-none-any.whl

Download URL msv4_utils-0.0.3-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
522e902cb5b8b322bad25d7434e7ffbc14e0e687dcb7ca23113c872305bd4efb
BLAKE2b-256 checksum
How to use checksums
cbc54eea0ca3fff078dabfbfa11fdf90b8578db62ac66186b1d599ce2f772171
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release 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