# experiment-launcher
[](https://travis-ci.org/eWaterCycle/experiment-launcher) [](https://sonarcloud.io/dashboard?id=experiment-launcher) [](https://sonarcloud.io/component_measures?id=experiment-launcher&metric=coverage) [](https://doi.org/10.5281/zenodo.1453264)
eWaterCycle Experiment Launcher a webservice to generate and launch a Jupyter notebook.
The API of the webservice is described in OpenAPI specification at [openapi.yaml](https://github.com/eWaterCycle/experiment-launcher/blob/master/ewatercycle_experiment_launcher/swagger.yaml) and can be seen in [Swagger UI](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/eWaterCycle/experiment-launcher/master/ewatercycle_experiment_launcher/openapi.yaml)
# Install
## JupyterHub server
The experiment launcher needs to communicate with a Jupyter Hub server. The JupyterHub server must running with a service which has a known token and has admin rights.
`bash pip install jupyterhub dockerspawner sudo npm install -g configurable-http-proxy cp jupyterhub_config.py.example jupyterhub_config.py # Generate token export JUPYTERHUB_TOKEN=$(openssl rand -hex 32) echo $JUPYTERHUB_TOKEN # Set token nano jupyterhub_config.py docker pull ewatercycle/jupyterlab-experiment-builder jupyterhub `
Test JupyterHub by going to http://172.17.0.1:8000 and login with OS credentials.
## Installation for production
`bash pip install ewatercycle_experiment_launcher `
## Installation for development
To install the launcher in development mode clone the repo and run
`bash python setup.py develop `
# Run
`bash # JUPYTERHUB_TOKEN env var should be set to same value as token in jupyterhub_config.py export JUPYTERHUB_URL=http://172.17.0.1:8000 gunicorn -w 4 -b 0.0.0.0:8888 ewatercycle_experiment_launcher.serve:app `
Goto http://localhost:8888/ui/ for Swagger UI.
The JupyterHub and Experiment Launcher use local OS accounts for authentication and authorization.
In the Swagger UI you must authorize before trying an operation.
When running on Internet make sure https is enforced so the authentication is secure.
# Changelog All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.2.0] - 2018-12-06
### Fixed
workspace is already in use in another JupyterLab window (#11)
### Changed
Upgraded to Connexion v2
Upgraded to OpenAPI v3
## [0.1.0] - 2018-10-09
Initial release
Metadata
Release files for ewatercycle-experiment-launcher 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 |
|---|---|---|---|---|
| ewatercycle_experiment_launcher-0.2.0.tar.gz | 15.6 kB | Without provenance | Details for ewatercycle_experiment_launcher-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ewatercycle_experiment_launcher-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ewatercycle_experiment_launcher-0.2.0-py2.py3-none-any.whl |
Total release size: 29.8 kB
Release files / ewatercycle_experiment_launcher-0.2.0.tar.gz
| Download URL | ewatercycle_experiment_launcher-0.2.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a330a0c25c7e380158f917e40eaef585e588427e4b4984d784f7ae8708b2fa6
|
|
BLAKE2b-256 checksum How to use checksums |
9769d9a19301a6980b081fd6d33506f65d34b911c43687bb59e9e577eeb8c586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / ewatercycle_experiment_launcher-0.2.0-py2.py3-none-any.whl
| Download URL | ewatercycle_experiment_launcher-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5b1693d9ba614e8d9456f3c4335a8414e02c7703077dbf21c4126a84bad254de
|
|
BLAKE2b-256 checksum How to use checksums |
17fecc803936a7b8d6968525579e27e4e3ef54894d35f61b1d92ad73ba42ed40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for ewatercycle-experiment-launcher 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.