Skip to main content

Xpublish

Publish Xarray Datasets and DataTrees to the web

PyPI Conda PyPI - Python Version Binder

GitHub Workflow Status Documentation Status pre-commit.ci status

A quick example

Serverside: Publish an Xarray Dataset or DataTree through a REST API

ds.rest.serve(host="0.0.0.0", port=9000)
# or, for a hierarchical DataTree, the API is identical:
dt.rest.serve(host="0.0.0.0", port=9000)

Client-side: Connect to a published dataset

The published datasets can be accessed from various kinds of client applications, including any HTTP client. To explore the available endpoints, open http://0.0.0.0:9000/docs in a browser.

Why?

Xpublish lets you serve/share/publish Xarray Datasets and DataTrees via a web application.

The data and/or metadata can be exposed in various forms through pluggable REST API endpoints. Hierarchical data is supported natively — bare Datasets are wrapped in a single-node DataTree internally so the same routes, accessors, and plugins work whether you're serving a flat dataset or a deeply nested tree. Efficient, on-demand delivery of large datasets may be enabled with Dask on the server-side.

Xpublish's plugin ecosystem has capabilities including:

  • publish on-demand or derived data products
  • turning xarray objects into streaming services (e.g. OPeNDAP)
  • Zarr-compatible access via xpublish-zarr

How?

Under the hood, Xpublish is using a web app (FastAPI) that is exposing a REST-like API with builtin and/or user-defined endpoints. Additional endpoints can be added by installing or writing plugins.

Metadata

Release files for xpublish 0.5.2

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

Source distribution (sdist)

Source distribution for xpublish 0.5.2
File Size Uploaded Provenance
xpublish-0.5.2.tar.gz 25.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xpublish 0.5.2
File Interpreter ABI Platform
xpublish-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 55.5 kB

Release files / xpublish-0.5.2.tar.gz

Download URL xpublish-0.5.2.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f45fbccf94dbf2a2bbe97d583f1f7bc966dba4e4f19d420a6c71e9d6840c13b8
BLAKE2b-256 checksum
How to use checksums
3b8a4837f9a8ce97b3e6de4ff522317d0bb63d21d7d3ed75da9ee3879088d009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jun 18, 2026.

Transparency log

Release files / xpublish-0.5.2-py3-none-any.whl

Download URL xpublish-0.5.2-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce6b529a525149bc6d73ed4a62dbd38adbe863f6897b7ce32af38d3b666a2649
BLAKE2b-256 checksum
How to use checksums
97933398b455e0935770aa86a356353616718a9dcdf6c8f3be21167efef21c3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jun 18, 2026.

Transparency log

Security for xpublish 0.5.2

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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xpublish-0.5.2.tar.gz

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 Jun 18, 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.

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