Skip to main content

A RESTful interface to landlab graphs.

Project description

A RESTful interface to landlab graphs.


Use conda to install the necessary requirements and landlab_rest,

$ conda install --file=requirements.txt -c conda-forge
$ pip install .

Start the server,

$ start-sketchbook

Look at the line containing Serving on to see what host and port the server is running on. Alternatively, you can use the –host and –port options to specify a specific host and port (–help for help).

Now you should be able to send requests to the server. For instance, to get a RasterModelGrid,

$ curl

For a list of supported graphs

$ curl

You can pass parameters like,

$ curl ',5&spacing=2.,1.'


To build a new docker image that will be a landlab-rest server,

docker build . -t landlab-rest

After building, run the server,

docker run -it -p 80:80 landlab-rest

Once running, you can then send requests to the server. For example,

$ curl

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for landlab-rest, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size landlab_rest-0.2.0.tar.gz (20.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page