Skip to main content

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/

Configure API URL (optional)

By default, the CLI uses the production API URL baked into the package.

To override (for dev/staging):

export OPENSEES_API_URL="https://your-api-id.execute-api.us-west-2.amazonaws.com/prod"

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 version
  • status: show current login state and local config path
  • 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 whoami
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

Notes:

  • Password prompts are interactive and masked.
  • Credentials are stored in ~/.ops/credentials.json.
  • Access tokens are refreshed automatically when possible.

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 .py simulation script
  • --timeout, -t: max runtime in seconds (default 120, backend max 900)
  • --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 auth whoami
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


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.0a1.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opensees_cli-0.1.0a1-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file opensees_cli-0.1.0a1.tar.gz.

File metadata

  • Download URL: opensees_cli-0.1.0a1.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for opensees_cli-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 b5dde29904773fe190ab64247cb5bf17ddc15acbbdf361e82b3f5b8b17c6e6f6
MD5 3789301575a474be87e7296022aa9639
BLAKE2b-256 6cf818daa6d780faccb9ac56b5c21700ef9183ac404f516fa49839de8a2fa917

See more details on using hashes here.

File details

Details for the file opensees_cli-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: opensees_cli-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for opensees_cli-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 21d8c1c86ba30fca72a286bf2f78beb39142fee25277148381db39f3955032fc
MD5 605e6e0da6e904d2240ecfb5ba5a709f
BLAKE2b-256 d3eb4d29a8110170dca012fc1e21040868dbc8a99bf077e5779bb094240d1d9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page