Use Intake catalogs to load datasets into Xpublish
Project description
Xpublish-Intake-Provider
Xpublish-Intake-Provider allows serving datasets with Xpublish specified by Intake catalogs.
Installation
For conda
users you can
conda install --channel conda-forge xpublish_intake_provider
or, if you are a pip
users
pip install xpublish_intake_provider
Example
Currently this package includes one plugin which can load an
Intake catalog and serve it's datasets via /datasets/{dataset_id}
.
You can register the plugin multiple times in order to serve multiple catalogs as long as each gets its own name.
from xpublish_intake_provider import IntakeDatasetProviderPlugin
rest = xpublish.Rest({})
rest.register_plugin(
IntakeDatasetProviderPlugin(
name="gfs-datasets",
uri="https://raw.githubusercontent.com/axiom-data-science/mc-goods/main/mc_goods/gfs-1-4deg.yaml"
)
)
rest.register_plugin(
IntakeDatasetProviderPlugin(
name="gomofs-datasets",
uri="https://raw.githubusercontent.com/axiom-data-science/mc-goods/main/mc_goods/gomofs.yaml"
)
)
Get in touch
Report bugs, suggest features or view the source code on GitHub.
License and copyright
xpublish_intake_provider is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).
Development occurs on GitHub at https://github.com/ioos/xpublish_intake_provider.
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
Hashes for xpublish-intake-provider-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 821d89f339c26f2e386579482b2ff5f89879ccc29933d24a333f577b28b784e2 |
|
MD5 | 7165a2bdfdeb262c8ca51661e70f76db |
|
BLAKE2b-256 | 26e49ffca5b87f9ab5394f7a47d56a4482ebe49dcc7543779471a2dd76b7f732 |
Hashes for xpublish_intake_provider-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfc2fd468b8ca18ae9fa60a7aee32574cbbbce58a60100c9f020d841fd875ad9 |
|
MD5 | b13351b376aa19ed9b1c7f3256b88027 |
|
BLAKE2b-256 | 1ba2c8d5553284049b1ea5f7d4989c763c605225f21a0d05aada999eaa3513c2 |