SimScale cloud backend driver for sim-cli, distributed as a plugin
Project description
sim-plugin-simscale
Use Codex, Claude Code, or another AI agent to work with SimScale cloud simulations through sim-cli.
sim-plugin-simscale makes SimScale a cloud backend in sim's cross-solver
runtime. It is not a general replacement for the SimScale API or Workbench.
The first alpha release focuses on safe API access checks, session inspection,
and one guarded smoke recipe.
SimScale access, API keys, and compute credits are not bundled. See LICENSE-NOTICE.md.
Current Maturity
This is an initial alpha. It has unit coverage and one real-cloud smoke path for accounts with SimScale API access and enough credits.
The only built-in recipe in 0.1.x is:
kind: pipe_junction_incompressible_smoke
name: My SimScale smoke run
max_compute_cpu_hours: 0.5
The recipe uploads a tiny pipe-junction Parasolid fixture, imports geometry, creates a water incompressible-flow setup, meshes, solves, and downloads a probe-point CSV.
Install
PyPI is the primary channel:
uv pip install sim-plugin-simscale
For an exact release:
uv pip install "sim-plugin-simscale==0.1.1"
For source testing against the current main branch:
uv pip install "git+https://github.com/svd-ai-lab/sim-plugin-simscale.git@main"
Authentication
Create a SimScale API key in your SimScale account and export it locally:
export SIMSCALE_API_KEY="..."
On PowerShell:
$env:SIMSCALE_API_KEY = "..."
Optional:
export SIMSCALE_API_URL="https://api.simscale.com"
Never commit API keys. Rotate keys that were pasted into chat or logs.
Common Workflow
Check API access:
sim check simscale
Start an API-backed session:
sim connect --solver simscale --ui-mode no_gui
sim inspect session.summary
sim inspect simscale.spaces
Run bounded JSON commands:
sim exec '{"command": "list_projects"}'
sim exec '{"command": "list_results", "project_id": "...", "simulation_id": "...", "run_id": "..."}'
Run the smoke recipe:
sim run --solver simscale recipe.yaml
Artifacts are written under .sim/runs/<run-id>/:
metadata.jsonevents.jsonprobe_points.csv
Credit Safety
The smoke recipe calls SimScale estimate endpoints before starting meshing or
solving. By default it aborts if either estimate exceeds 0.5 CPU-hours.
You can lower the gate in the recipe:
max_compute_cpu_hours: 0.2
Successful API calls can still create projects/uploads. Compute credit is only expected after mesh or simulation run start calls.
Develop
git clone https://github.com/svd-ai-lab/sim-plugin-simscale
cd sim-plugin-simscale
uv sync --extra test
uv run pytest -q
uv build
Live smoke testing is opt-in:
SIMSCALE_API_KEY=... SIMSCALE_RUN_INTEGRATION=1 uv run pytest tests/test_live_smoke.py -q
License
Apache-2.0. See LICENSE and LICENSE-NOTICE.md.
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
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 sim_plugin_simscale-0.1.1.tar.gz.
File metadata
- Download URL: sim_plugin_simscale-0.1.1.tar.gz
- Upload date:
- Size: 82.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13daf1bf54446e9b9e4ace51ca074c0fb380226a9c2466d6295a3987916dc522
|
|
| MD5 |
01478799aee78515ca2758abdf26b1b4
|
|
| BLAKE2b-256 |
af43f68b2a361a9938f9e7d9ce8112f13d4309b51e5502b9391f30d4b9b694ec
|
File details
Details for the file sim_plugin_simscale-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sim_plugin_simscale-0.1.1-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e6fb72694a1cd7258561bb70d5fe2132605d0aa2a81eec7e99bd7c68460b828
|
|
| MD5 |
192b9c8edd807fd36d640e43e40ce876
|
|
| BLAKE2b-256 |
498e741c6833eec830ebd02761c853141aa734878de15c83dd1e944f600ecac6
|