Publish Xarray Datasets via a REST API.
Project description
Xpublish
Publish Xarray Datasets and DataTrees to the web
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xpublish-0.5.0.tar.gz.
File metadata
- Download URL: xpublish-0.5.0.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
512f2a1d755343b6e816315166728b6ec6fbb410947239f6a79524d7ec950f2d
|
|
| MD5 |
bdcd0d225a4be926f9fce77155e3dd54
|
|
| BLAKE2b-256 |
c7ebfab6b697371b9957af854111630cc200ff3dd2fe856d63a9c1d754f46b5b
|
Provenance
The following attestation bundles were made for xpublish-0.5.0.tar.gz:
Publisher:
pypipublish.yaml on xpublish-community/xpublish
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpublish-0.5.0.tar.gz -
Subject digest:
512f2a1d755343b6e816315166728b6ec6fbb410947239f6a79524d7ec950f2d - Sigstore transparency entry: 1634609986
- Sigstore integration time:
-
Permalink:
xpublish-community/xpublish@f6ffa18375259e1c7aaf506265d091bc6c992ec7 -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/xpublish-community
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypipublish.yaml@f6ffa18375259e1c7aaf506265d091bc6c992ec7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file xpublish-0.5.0-py3-none-any.whl.
File metadata
- Download URL: xpublish-0.5.0-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76df655379885f0487002f9cd51921fbd8bb1fcba97c3c445efebfb614d5d4d0
|
|
| MD5 |
41077d732eee130df4672e65f08bfaf8
|
|
| BLAKE2b-256 |
f9021e840bcb4b3b9bcab36351638165373abdaa8e788e44f823df88e4ca24b1
|
Provenance
The following attestation bundles were made for xpublish-0.5.0-py3-none-any.whl:
Publisher:
pypipublish.yaml on xpublish-community/xpublish
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpublish-0.5.0-py3-none-any.whl -
Subject digest:
76df655379885f0487002f9cd51921fbd8bb1fcba97c3c445efebfb614d5d4d0 - Sigstore transparency entry: 1634610023
- Sigstore integration time:
-
Permalink:
xpublish-community/xpublish@f6ffa18375259e1c7aaf506265d091bc6c992ec7 -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/xpublish-community
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypipublish.yaml@f6ffa18375259e1c7aaf506265d091bc6c992ec7 -
Trigger Event:
release
-
Statement type: