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
Auto-TMS on DSClient init, configurable jobs list output
- DSClient() now auto-establishes TMS credentials on TACC systems
(frontera, stampede3, ls6). Skips gracefully on errors/no allocation.
- ds.jobs.list() supports output="df" (default), "list", or "raw".
- Simplify auth docs: DB credentials use built-in defaults, no .env needed.
- Remove manual TMS step from quickstart (now automatic).
- 59 tests pass (8 new for setup_tms, 6 new for output formats).
Database connections use built-in public read-only credentials by default -- no `.env` setup is required for database access. If you need to override the defaults (e.g., for a private database instance), you can set environment variables:
331
331
332
-
```python
333
-
# Check database environment variables
334
-
import os
335
-
print("NGL_DB_USER:", os.getenv('NGL_DB_USER'))
336
-
print("VP_DB_USER:", os.getenv('VP_DB_USER'))
337
-
print("EQ_DB_USER:", os.getenv('EQ_DB_USER'))
338
-
```
339
-
340
-
Required database environment variables:
341
332
```bash
342
-
# NGL Database
343
-
export NGL_DB_USER="dspublic"
344
-
export NGL_DB_PASSWORD="your_password"
345
-
export NGL_DB_HOST="db_host"
346
-
export NGL_DB_PORT="3306"
347
-
348
-
# VP Database
349
-
export VP_DB_USER="dspublic"
350
-
export VP_DB_PASSWORD="your_password"
351
-
export VP_DB_HOST="db_host"
352
-
export VP_DB_PORT="3306"
353
-
354
-
# Earthquake Recovery Database
355
-
export EQ_DB_USER="dspublic"
356
-
export EQ_DB_PASSWORD="your_password"
357
-
export EQ_DB_HOST="db_host"
358
-
export EQ_DB_PORT="3306"
333
+
# Optional: override database credentials via .env or environment
334
+
NGL_DB_USER=your_user
335
+
NGL_DB_PASSWORD=your_password
336
+
NGL_DB_HOST=your_host
337
+
NGL_DB_PORT=3306
359
338
```
360
339
361
-
## Example: Complete Setup
340
+
The same pattern applies for VP (`VP_DB_*`) and Earthquake Recovery (`EQ_DB_*`) databases.
362
341
363
-
Here's a complete example of setting up authentication:
Copy file name to clipboardExpand all lines: docs/quickstart.md
+4-11Lines changed: 4 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,20 +61,13 @@ ds = DSClient()
61
61
# Output: Authentication successful.
62
62
```
63
63
64
-
### Step 1b: Establish TMS Credentials (One-Time)
64
+
`DSClient()` automatically sets up TMS credentials on TACC execution systems (Frontera, Stampede3, LS6). You'll see a summary like:
65
65
66
-
Before submitting jobs, ensure you have TMS credentials on the execution system:
67
-
68
-
```python
69
-
# One-time setup per system -- safe to call repeatedly
70
-
ds.systems.establish_credentials("frontera")
71
-
# Output: TMS credentials established for user 'myuser' on system 'frontera'.
72
-
73
-
# Or if already established:
74
-
# Output: Credentials already exist for user 'myuser' on system 'frontera'. No action taken.
66
+
```
67
+
TMS credentials ready: frontera, stampede3, ls6
75
68
```
76
69
77
-
See the [Authentication Guide](authentication.md#tms-credentials-execution-system-access) for details.
70
+
Systems where you don't have an allocation are silently skipped. See the [Authentication Guide](authentication.md#tms-credentials-execution-system-access) for manual control.
0 commit comments