Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

VSWMC Command-Line Interface

Install with pip:

pip install --upgrade vswmc-cli

This will install a vswmc command on your system. The vswmc command uses an S2P OAuth access token for authentication. Obtain the token outside the CLI, for example with the OAuth 2.0 Client Credentials flow described in the SSO migration guide, then provide it with one of:

VSWMC_ACCESS_TOKEN

    Read the access token from the environment.

--token TOKEN

    Read the access token from the command line.

--token-file FILE

    Read the access token from a file.

Example token request:

curl \
  -d 'client_id=<M2M_CLIENT_ID>' \
  -d 'client_secret=<M2M_CLIENT_SECRET>' \
  -d 'grant_type=client_credentials' \
  -d 'scope=<VSWMC_RESOURCE_SERVER_CLIENT_ID>' \
  'https://sso.s2p.esa.int/realms/swe/protocol/openid-connect/token'

Example CLI usage:

export VSWMC_ACCESS_TOKEN=<ACCESS_TOKEN>
vswmc simulations list

List available simulations

vswmc simulations list

This shows the parameters that a run requires.

Start a run

vswmc run [--param-file PARAM_FILE] [--param PARAM=VALUE ...] -- SIMULATION

This command returns the ID of the new run via stdout. You can use this ID to fetch the log or fetch result files.

OPTIONS

--param-file PARAM_FILE
Read parameters from a file.
--param PARAM=VALUE ...
Set parameters.

Each simulation supports different parameters. To know what parameters you need for a particular simulation, run:

vswmc simulations describe SIMULATION

List runs

vswmc ps [--simulation SIMULATION] [-a, --all]

OPTIONS

--simulation SIMULATION
Filter on simulation.
-a, --all
List all runs (default shows only ongoing)

Copy a result file to disk

vswmc cp SRC DST

Downloads a remote result file to local disk. The source should be specified in the format RUN:FILE. The DST argument can be a local file or directory.

Fetch the logs of a run

vswmc logs RUN

List the results of a run

vswmc ls [-l] RUN

OPTIONS

-l
Print long listing

Save all results of a run

vswmc save RUN

Saves all result files of a run. The results of each individual task in this run are compressed and saved into a zip archive named after the model for that task.

Stop one or more runs

vswmc stop RUN ...

Remove one or more runs

vswmc rm RUN ...

Create a product

vswmc products create [--metadata-file FILE] [--metadata PARAM=VALUE ...] [--attach FILE ...] -- PRODUCT_TYPE

OPTIONS

--param-file PARAM_FILE
Read parameters from a file.
--param PARAM=VALUE ...
Set parameters.
--attach FILE ...
Attach product files

EXAMPLE

vswmc products create --metadata test=123 --attach ../testdata/solar_wind_boundary.dat -- MHD0.1-1

Returns the ID of the created product.

Start a run using a product as input

vswmc run --param corona=6273ce7678eeb43c60d2eb8f \
          --param grid=test_light \
          --param cmes=examples/resources/cme_list.dat \
          -- euhforia-heliosphere-standalone

The corona parameter expects a product identifier.

Metadata

Release files for vswmc-cli 2.2.3.dev700

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vswmc-cli 2.2.3.dev700
File Size Uploaded Provenance Actions
vswmc_cli-2.2.3.dev700.tar.gz 15.5 kB Without provenance Details for vswmc_cli-2.2.3.dev700.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vswmc-cli 2.2.3.dev700
File Interpreter ABI Platform Actions
vswmc_cli-2.2.3.dev700-py2.py3-none-any.whl Python 2, Python 3 none any Details for vswmc_cli-2.2.3.dev700-py2.py3-none-any.whl

Total release size: 35.0 kB

Release files / vswmc_cli-2.2.3.dev700.tar.gz

Download URL vswmc_cli-2.2.3.dev700.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
05c2c601276a57d214b8e3dd1cde95d86c62103738ad108175664eaacc4da625
BLAKE2b-256 checksum
How to use checksums
ebf4537312c01eb1a051245cf230f640efcbba66ad77bd59fb84a35d8a1c80c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / vswmc_cli-2.2.3.dev700-py2.py3-none-any.whl

Download URL vswmc_cli-2.2.3.dev700-py2.py3-none-any.whl
Size 19.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7bed15e48a939b9ec8b5ab0c2f4125f5bf5df6298494b70e99bd7e98450e70c2
BLAKE2b-256 checksum
How to use checksums
96fe060aca7abeaa8780db82b62d1d98e04cbca674daa9c01454ec0866879323
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for vswmc-cli 2.2.3.dev700

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page