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

The PyPI distribution name matches the import name: import opensees_cli and python -m opensees_cli.

Package page: pypi.org/project/opensees_cli (PyPI may still show opensees-cli in the page title; that is the same project—hyphens and underscores are equivalent there.)

PATH and the ops command

After install, pip places the ops launcher in a scripts directory (e.g. Scripts on Windows, bin on macOS/Linux). That folder might not be on your PATH, so ops may be missing in a new terminal.

  • On the first interactive run, the CLI can offer to add that folder to your PATH automatically.
  • To always run that step (for example on Windows), use:
python -m opensees_cli set_path

Answer Y when prompted. Open a new terminal afterward, then try ops version.

If ops is still not found, you can run the same program with:

python -m opensees_cli

To see the PATH offer again after you skipped it, delete the marker file ~/.opensees/path_fixed (on Windows: %USERPROFILE%\.opensees\path_fixed) and run python -m opensees_cli or python -m opensees_cli set_path.

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 set_path
ops version
ops status
ops quota
ops help
  • set_path: interactive prompt to add the ops launcher directory to your PATH (use python -m opensees_cli set_path if ops is not on PATH yet)
  • version: print CLI version
  • status: 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 .py simulation script
  • --timeout, -t: max wall time per task in seconds (default 120). The API requires your monthly runtime remainingtimeout × 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


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.0a8.tar.gz (44.3 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.0a8-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opensees_cli-0.1.0a8.tar.gz
  • Upload date:
  • Size: 44.3 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.0a8.tar.gz
Algorithm Hash digest
SHA256 843577cda6463e20e22a477c81b0a6b0388a1cbac113cc3589fe2265d1b310ad
MD5 3c24fda71c41cdd122333b19ca74611e
BLAKE2b-256 b6db7e005d24f3f9ee008d023f92800aa5cae075d57a2c519e25c662d47e9c35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opensees_cli-0.1.0a8-py3-none-any.whl
  • Upload date:
  • Size: 41.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.0a8-py3-none-any.whl
Algorithm Hash digest
SHA256 77334e291f80463e353a5df3a0c50f1262873b48eee6dbb188f6b7fd2a0cfc67
MD5 4b90f006f468ed52fde2c3278ecd1071
BLAKE2b-256 3540a859fb3739d007ecd4254d56379fe7e6a7f93fb2090eafe4190610617dce

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