Skip to main content

WX-1 Python package (experimental)

This directory contains the Python package and maturin build configuration. The native module is implemented in ../bindings/wx1-python and links to the existing wx1-format Rust crate.

CPU-only install

From this directory, build/install the CPU-only package with:

python -m pip install .

The base package has no GPU or scientific-format dependencies. NumPy, xarray, Dask, NetCDF4, Zarr and GRIB2/ecCodes integrations are opt-in extras. A Rust toolchain is required to build from source; a compatible wheel avoids requiring Rust on the installation machine.

python -m pip install '.[numpy,xarray,dask]'
python -m pip install '.[netcdf]'
python -m pip install '.[zarr]'
python -m pip install '.[grib2]'

API prototype

  • wx1.open_file(path) opens a scientific schema-v2 file and fully validates the current generation using the existing Rust open_scientific_snapshot path. This is not lazy open.
  • Wx1File.read_array_slice(path, start, count) reads only the planned chunks for that selection and returns a NumPy array if NumPy is installed.
  • wx1.write_array(...) writes one root-level variable to a new file. It accepts chunked C-contiguous array bytes and uses the bounded reader-based Zstandard generation writer. It refuses to overwrite an existing destination.
  • wx1.open_dataset(path, engine='wx1') exposes variables through an xarray lazy indexing backend. Metadata/generation open currently performs full container validation; only array materialization is lazy. Dask-backed chunking is available when the dask extra is installed.

The initial writer handles one variable per file and text-valued variable attributes. It supports multiple chunks, but does not yet expose coordinate variables, groups, grid mappings, provenance construction or multi-variable writes. Those are explicit API gaps, not silently discarded metadata. The reader preserves the scientific model's variable attributes, dimensions, byte order and dtype for variables already present in a file.

Optional external-format adapters

  • wx1.adapters.netcdf.open_dataset: xarray NetCDF reader; NetCDF4 support depends on the optional netcdf extra.
  • wx1.adapters.zarr.open_dataset: xarray Zarr reader; supports the installed Zarr version/format.
  • wx1.adapters.grib2.open_dataset: xarray/cfgrib reader; requires the grib2 extra and ecCodes.

These are external-format readers, not complete WX-1 import/export or lossless roundtrip adapters. Tests use deterministic local fixtures when the required optional library is installed. GRIB2 test fixtures must be supplied locally; no network download occurs during tests.

Status and limits

This is an experimental Phase-1 vertical slice. The current authoring environment has Python 3.13.5, NumPy 2.3.5, xarray 2026.4.0, SciPy 1.17.0 and pytest 9.0.2, but no Cargo/rustc/maturin, Dask, NetCDF4, Zarr or ecCodes. An attempt to install optional packages in a temporary venv was blocked by unavailable package-index DNS; no project dependencies were changed. The current Python suite was run with 14 passed and 10 skipped. The native extension, wheel and live NumPy↔WX-1 roundtrip remain unverified because Cargo/rustc/maturin are unavailable here. Dask, NetCDF4 and Zarr were skipped because their optional packages are absent; GRIB2 was skipped because no local fixture or cfgrib/ecCodes installation is available. These integrations must be tested in a Rust-enabled environment before Phase 1 can be declared complete.

Metadata

Release files for tempest-wx1 0.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 tempest-wx1 0.1.1
File Size Uploaded Provenance Actions
tempest_wx1-0.1.1.tar.gz 181.6 kB Without provenance Details for tempest_wx1-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tempest-wx1 0.1.1
File Interpreter ABI Platform Actions
tempest_wx1-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for tempest_wx1-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl

Total release size: 1.2 MB

Release files / tempest_wx1-0.1.1.tar.gz

Download URL tempest_wx1-0.1.1.tar.gz
Size 181.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4c1a705aa611017a1e6e6e104fc551f192cdc472a698c62554262be12ad1a186
BLAKE2b-256 checksum
How to use checksums
b13766f986686fa6af43e173767f8dcb311a89aa0ba5e8ba38c4f5691cd9ffc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / tempest_wx1-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL tempest_wx1-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
Size 1.0 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
077bc5fb0df0df549e6a5017ec8491d75088c9d31f79743cad94b874c266939a
BLAKE2b-256 checksum
How to use checksums
3f0e64ecd90a179b06efeee5994104a52be3a0c4e060b6f9a071f574dd9fd490
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for tempest-wx1 0.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