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)
| File | Size | Uploaded | |
|---|---|---|---|
| msv4_utils-0.0.3.tar.gz | 10.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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