Run OpenSees simulations in the cloud from the command line.
Project description
OpenSees CLI Documentation
Command-line interface for authentication and simulation runs.
Install
pip install opensees-cli
For local development from this repo:
pip install -e cli/
For development with test dependencies:
pip install -e "cli/[dev]"
Running tests
cd cli
pytest
Quick Start
# 1) Create account
ops auth signup --email you@example.com
# 2) Confirm account
ops auth confirm --email you@example.com --code 123456
# 3) Log in
ops auth login --email you@example.com
# 4) Submit a simulation
ops run submit ./model.py --timeout 300 --wait
Top-Level Commands
ops version
ops status
ops quota
ops help
version: print CLI versionstatus: show account details, signup time, and quota (calls the API)quota: show your current run quota
Auth Commands
ops auth signup --email you@example.com
ops auth confirm --email you@example.com --code 123456
ops auth resend-code --email you@example.com
ops auth login --email you@example.com
ops auth logout
ops auth status
ops auth forgot-password --email you@example.com
ops auth reset-password --email you@example.com --code 123456
ops auth change-password
ops auth help
Run Commands
ops run submit ./model.py --timeout 120 --wait
ops run status <run_id>
ops run output <run_id>
ops run result <run_id>
ops run cancel <run_id>
ops run list --limit 20
ops run help
run submit options
file(required positional): path to a.pysimulation script--timeout,-t: max wall time per task in seconds (default120). The API requires your monthly runtime remaining ≥timeout ×number of tasks. Runs above 900s use Fargate when configured; otherwise the 900s Lambda limit applies.--wait/--no-wait: stream output until completion (default--wait)
Validation enforced by CLI:
- file must exist
- file extension must be
.py - file size must be <= 200 KB
Common Workflows
Check account + quota
ops status
ops quota
Submit and monitor a run later
ops run submit ./model.py --no-wait
ops run status <run_id>
ops run output <run_id>
ops run result <run_id>
Reset password
ops auth forgot-password --email you@example.com
ops auth reset-password --email you@example.com --code 123456
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opensees_cli-0.1.0a3.tar.gz
(40.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opensees_cli-0.1.0a3.tar.gz.
File metadata
- Download URL: opensees_cli-0.1.0a3.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8657047448c4d07505f423a90a82d397b1caa1f9b7999da98c3a19ec19a861b3
|
|
| MD5 |
50c93d64a21e51bf3e859b65f25c7fae
|
|
| BLAKE2b-256 |
1ef069a4fcbd174ed34b2d0206fa0f3bab4b12189f0bc9f8a82ec30fec3dd424
|
File details
Details for the file opensees_cli-0.1.0a3-py3-none-any.whl.
File metadata
- Download URL: opensees_cli-0.1.0a3-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1a633e6a20e3550b0e19d600c9236e199328d5545f4b59dd1d514a3c59bf45f
|
|
| MD5 |
c94bbb7c17f4bc2b4fc5a829d36ccae0
|
|
| BLAKE2b-256 |
48b8686e71e3bb30919b71d5a038c12e848f1af905f6458341b8adbc5217ecbf
|