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
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-intake-provider-0.1.1.tar.gz.
File metadata
- Download URL: xpublish-intake-provider-0.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
821d89f339c26f2e386579482b2ff5f89879ccc29933d24a333f577b28b784e2
|
|
| MD5 |
7165a2bdfdeb262c8ca51661e70f76db
|
|
| BLAKE2b-256 |
26e49ffca5b87f9ab5394f7a47d56a4482ebe49dcc7543779471a2dd76b7f732
|
File details
Details for the file xpublish_intake_provider-0.1.1-py3-none-any.whl.
File metadata
- Download URL: xpublish_intake_provider-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfc2fd468b8ca18ae9fa60a7aee32574cbbbce58a60100c9f020d841fd875ad9
|
|
| MD5 |
b13351b376aa19ed9b1c7f3256b88027
|
|
| BLAKE2b-256 |
1ba2c8d5553284049b1ea5f7d4989c763c605225f21a0d05aada999eaa3513c2
|