Skip to main content

xuepy

Xue (雪) weather bundles for Python: an experimental native encoder and the reader for legacy .xue files — the Xue Rust crate through PyO3.

The service publishes every run as Zarr v3 stores, specified in docs/zarr-profile.md, with the metadata and codebooks of docs/bundle.md. Reading a store needs no part of this package: xarray.open_zarr returns physical values through the stores' CF attributes. This wheel writes those stores, and reads the single-file .xue container (docs/format.md) that runs published before the stores carry.

Installing

pip install xuepy

Linux wheels are manylinux_2_39 (Ubuntu 24.04+, Debian 13+) and macOS is arm64 only. There is no sdist: building from source needs GDAL, libclang and cmake, and an unsupported platform is better served by a clear "no matching distribution" than by a confusing build failure.

Encoding

Experimental, and held to the Python reference pipeline by byte-for-byte identical output on every source it supports — GFS, ECMWF, GFS surface flux, and the CMA radar mosaic.

report = xue.convert_bin(["data/raw/gfs.2026082006"], "out/", model="gfs")

A build writes the run's Zarr v3 stores by default; container=True writes each bundle's .xue beside them, and zarr=False, container=True the .xue alone.

The stages are also exposed on their own — quantize, encode_residual, decimate, encode_poster, write_store — taking and returning NumPy arrays.

write_columns cuts a run's column store (columns.zarr: one cell's whole profile over the run in a few chunks) from the map stores the run already holds. It takes the run directory, a plan naming the arrays and where their codes are, and a path that does not exist yet:

plan = {"columnsPlan": 1, "arrays": [
    {"id": "tmp", "predictor": "previous", "levels": [850, 500], "members": [
        {"bundle": "tmp850", "variable": "tmp850", "store": "bundles.zarr"},
        {"bundle": "tmp500", "variable": "tmp500", "store": "bundles.zarr"},
    ]},
]}
report = xue.write_columns("out/gfs.2026112400", json.dumps(plan), "out/gfs.2026112400/columns.zarr", jobs=4)

Reading a .xue file

Bundle is the same container reader the browser runs through wasm, so a bundle that decodes here decodes there. A plane comes back as the uint8 NumPy array of quantized codes the shader would have uploaded to an R8 texture; the metadata's quantization block turns it back into physical values.

import xue

bundle = xue.Bundle.open("tmp2m.xue")
plane = bundle.decode(variable_id=1, frame_offset=24)   # uint8, width * height

codebook = bundle.metadata["variables"][0]["quantization"]
celsius = codebook["offset"] + plane * codebook["scale"]

bundle.frame_offsets, bundle.unit_seconds and bundle.metadata describe the time axis and the grid. Reconstruction is checked against the CRC-32 the encoder wrote, so a corrupt file raises rather than returning wrong numbers.

What is in the wheel

Its own minimal GDAL: the GRIB and netCDF drivers, the OpenJPEG codec the GRIB driver needs for JPEG 2000-packed records (GFS-Wave), and nothing else, with GDAL's and PROJ's data directories beside it, because the GRIB driver cannot read a band without them. Eight shared libraries rather than the 227 a distribution GDAL pulls in, all permissively licensed, with their notices in xue/licenses/. Nothing needs to be installed alongside it and no environment variable needs setting.

See docs/encoder.md for how it is built and what it is measured against.

Metadata

Release files for xuepy 0.51.0

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

Built distributions (wheels)

Table of built distributions (wheels) for xuepy 0.51.0
File Interpreter ABI Platform Actions
xuepy-0.51.0-cp314-abi3-manylinux_2_39_x86_64.whl CPython 3.14 abi3 Linux glibc 2.39+ x86-64 Details for xuepy-0.51.0-cp314-abi3-manylinux_2_39_x86_64.whl
xuepy-0.51.0-cp314-abi3-manylinux_2_39_aarch64.whl CPython 3.14 abi3 Linux glibc 2.39+ ARM64 Details for xuepy-0.51.0-cp314-abi3-manylinux_2_39_aarch64.whl
xuepy-0.51.0-cp314-abi3-macosx_11_0_arm64.whl CPython 3.14 abi3 macOS 11.0+ ARM64 Details for xuepy-0.51.0-cp314-abi3-macosx_11_0_arm64.whl

Total release size: 48.9 MB

Release files / xuepy-0.51.0-cp314-abi3-manylinux_2_39_x86_64.whl

Download URL xuepy-0.51.0-cp314-abi3-manylinux_2_39_x86_64.whl
Size 18.3 MB
Tags CPython 3.14 Linux glibc 2.39+ x86-64 abi3
SHA-256 checksum
How to use checksums
0d092c67f7972229d104522fd429aae36c920993a8f55a436d8aaff09a096006
BLAKE2b-256 checksum
How to use checksums
8f21b5a02ad7c176bb1dc357f5750683b28b290966db6ea7514808b82c8e1f6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / xuepy-0.51.0-cp314-abi3-manylinux_2_39_aarch64.whl

Download URL xuepy-0.51.0-cp314-abi3-manylinux_2_39_aarch64.whl
Size 17.2 MB
Tags CPython 3.14 Linux glibc 2.39+ ARM64 abi3
SHA-256 checksum
How to use checksums
552e0781b811427a80c0efbdd04813ec6858709d2fbd2633f1b9a177c00f0c4e
BLAKE2b-256 checksum
How to use checksums
e74d987c3e685dc745f563358a8059396401fa5e3f82e564128d144b98899692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / xuepy-0.51.0-cp314-abi3-macosx_11_0_arm64.whl

Download URL xuepy-0.51.0-cp314-abi3-macosx_11_0_arm64.whl
Size 13.4 MB
Tags CPython 3.14 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
218109a432e300a30559b381163a892daf3a6df80ad8c93e2c894441596d84c3
BLAKE2b-256 checksum
How to use checksums
b1404bdf1d8327990fd79bd8f0c2794a064df680f9351ff0ab9aa1b631c7af1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Security for xuepy 0.51.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.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for xuepy-0.51.0-cp314-abi3-manylinux_2_39_x86_64.whl

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 Nov 29, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.51.0 This release

3 release files Full provenance

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