landlab REST
A RESTful interface to landlab graphs.
Quickstart
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 https://0.0.0.0:8080/graphs/raster
For a list of supported graphs
$ curl https://0.0.0.0:8080/graphs/
You can pass parameters like,
$ curl 'https://0.0.0.0:8080/graphs/raster?shape=4,5&spacing=2.,1.'
Docker
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 https://0.0.0.0/graphs/raster
Metadata
Release files for landlab-rest 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| landlab_rest-0.2.0.tar.gz | 20.2 kB | Without provenance | Details for landlab_rest-0.2.0.tar.gz |
Release files / landlab_rest-0.2.0.tar.gz
| Download URL | landlab_rest-0.2.0.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c05c4884d62db8b4ec175e5e03b6f6fbb3ba03fa3ef3d7d42e7f4f4c07ba3859
|
|
BLAKE2b-256 checksum How to use checksums |
a2ac7c9303e4ca97c050ada610e6c3a371701d40fe0bcdefc1fc352475df52ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for landlab-rest 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.