You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`dapi` is a library that simplifies the process of submitting, running, and monitoring [TAPIS v2 / AgavePy](https://agavepy.readthedocs.io/en/latest/index.html) jobs on [DesignSafe](https://designsafe-ci.org) via [Jupyter Notebooks](https://jupyter.designsafe-ci.org).
9
+
`dapi` is a library that simplifies the process of submitting, running, and monitoring [TAPIS v3](https://tapis.readthedocs.io/en/latest/) jobs on [DesignSafe](https://designsafe-ci.org) via [Jupyter Notebooks](https://jupyter.designsafe-ci.org).
10
10
11
11
## Features
12
12
13
13
### Jobs
14
14
15
-
*Simplified TAPIS v2 Calls: No need to fiddle with complex API requests. `dapi` abstracts away the complexities.
15
+
*Get TAPIS v3 templates for jobs: No need to fiddle with complex API requests. `dapi` abstracts away the complexities.
16
16
17
17
* Seamless Integration with DesignSafe Jupyter Notebooks: Launch DesignSafe applications directly from the Jupyter environment.
Dapi uses the Tapis v3 SDK to authenticate with the DesignSafe API. To store your credentials, create a `.env` file in the root of your project with the following content:
59
+
60
+
```shell
61
+
DESIGNSAFE_USERNAME=<your_designsafe_username>
62
+
DESIGNSAFE_PASSWORD=<your_designsafe_password>
63
+
```
64
+
56
65
### Jobs
57
66
58
67
*[Jupyter Notebook Templates](example-notebooks/template-mpm-run.ipynb) using dapi.
@@ -66,7 +75,7 @@ Install the latest version of `dapi` and restart the kernel (Kernel >> Restart K
66
75
```python
67
76
# Remove any previous installations
68
77
!pip uninstall dapi -y
69
-
# Install
78
+
# Install
70
79
!pip install dapi --quiet
71
80
```
72
81
@@ -122,10 +131,6 @@ To run the unit test
122
131
poetry run pytest -v
123
132
```
124
133
125
-
## Known Issues
126
-
127
-
The project only works on `Python 3.9` due to AgavePy Issue [#125](https://github.com/TACC/agavepy/issues/125).
`dapi` is a library that simplifies the process of submitting, running, and monitoring [TAPIS v2 / AgavePy](https://agavepy.readthedocs.io/en/latest/index.html) jobs on [DesignSafe](https://designsafe-ci.org) via [Jupyter Notebooks](https://jupyter.designsafe-ci.org).
3
-
2
+
dapi` is a library that simplifies the process of submitting, running, and monitoring [TAPIS v3](https://tapis.readthedocs.io/en/latest/) jobs on [DesignSafe](https://designsafe-ci.org) via [Jupyter Notebooks](https://jupyter.designsafe-ci.org).
4
3
5
4
## Features
6
5
7
-
* Simplified TAPIS v2 Calls: No need to fiddle with complex API requests. `dapi` abstracts away the complexities.
6
+
### Jobs
7
+
8
+
* Get TAPIS v3 templates for jobs: No need to fiddle with complex API requests. `dapi` abstracts away the complexities.
8
9
9
10
* Seamless Integration with DesignSafe Jupyter Notebooks: Launch DesignSafe applications directly from the Jupyter environment.
10
11
12
+
### Database
13
+
14
+
Connects to SQL databases on DesignSafe:
15
+
16
+
| Database | dbname | env_prefix |
17
+
|----------|--------|------------|
18
+
| NGL | `ngl`| `NGL_` |
19
+
| Earthake Recovery | `eq` | `EQ_` |
20
+
| Vp | `vp` | `VP_` |
21
+
22
+
Define the following environment variables:
23
+
```
24
+
{env_prefix}DB_USER
25
+
{env_prefix}DB_PASSWORD
26
+
{env_prefix}DB_HOST
27
+
{env_prefix}DB_PORT
28
+
```
29
+
30
+
For e.g., to add the environment variable `NGL_DB_USER` edit `~/.bashrc`, `~/.zshrc`, or a similar shell-specific configuration file for the current user and add `export NGL_DB_USER="dspublic"`.
`dapi` job submodule simplifies the process of submitting, running, and monitoring [TAPIS v2 / AgavePy](https://agavepy.readthedocs.io/en/latest/index.html) jobs on [DesignSafe](https://designsafe-ci.org) via [Jupyter Notebooks](https://jupyter.designsafe-ci.org).
2
+
`dapi` job submodule simplifies the process of submitting, running, and monitoring [Tapis v3](https://tapis.readthedocs.io/en/latest/) jobs on [DesignSafe](https://designsafe-ci.org) via [Jupyter Notebooks](https://jupyter.designsafe-ci.org).
3
3
4
4
5
5
## Features
6
6
7
-
* Simplified TAPIS v2 Calls: No need to fiddle with complex API requests. `dapi` abstracts away the complexities.
7
+
* Simplified TAPIS v3 Calls: No need to fiddle with complex API requests. `dapi` abstracts away the complexities.
8
8
9
9
* Seamless Integration with DesignSafe Jupyter Notebooks: Launch DesignSafe applications directly from the Jupyter environment.
10
10
11
-
## Installation
11
+
# Installation
12
12
13
13
```shell
14
14
pip3 install dapi
15
15
```
16
16
17
17
"""
18
18
from .dirimportget_ds_path_uri
19
-
from .jobsimportget_status, runtime_summary, generate_job_info, get_archive_path
19
+
from .jobsimportget_status, runtime_summary, generate_job_info
0 commit comments