Sign inSign up

epinux/metsis-fastapi

By epinux

•Updated 10 months ago

Image
0

1.5K

epinux/metsis-fastapi repository overview

⁠PyBasket

Prototype API for time-series plot and METSIS basket functionality

Docker container serving a web application/API based on the fastapi⁠ python software library. The fastapi application and its configuration file are loaded at runtime from a mounted volume. (docker environment based on the alpine container from uvicorn-gunicorn-docker⁠ repository)

To start the service:

sudo docker run -p 5000:80 -v 'absolute-path-to'/metsis-deploy/volumes/fastapi/pybasket/config.yaml:/opt/basket/config.yaml -v 'absolute-path-to'/metsis-deploy/volumes/fastapi/pybasket/app:/app epinux/metsis-fastapi

Once started, the API description will be available at http://localhost:5000/docs#/default

⁠NetCDF Plotting API

NetCDF data access is based on xarray⁠. Plotting routines are based on bokeh⁠. Assuming a NetCDF resource is available at resource_url

To test the plotting widget is possible to code the API call into an HTML file using fetch, see example⁠.

Tag summary

Content type

Image

Digest

Size

266.1 MB

Last updated

over 6 years ago

docker pull epinux/metsis-fastapi