Simulation tracking and monitoring
Project description
Simvue Python client
Collect metadata, metrics and artifacts from simulations, processing and AI/ML training tasks running on any platform, in real time.
Configuration
The service URL and token can be defined as environment variables:
export SIMVUE_URL=...
export SIMVUE_TOKEN=...
or a file simvue.toml can be created containing:
[server]
url = "..."
token = "..."
The exact contents of both of the above options can be obtained directly by clicking the Create new run button on the web UI. Note that the environment variables have preference over the config file.
Usage example
from simvue import Run
...
if __name__ == "__main__":
...
# Using a context manager means that the status will be set to completed automatically,
# and also means that if the code exits with an exception this will be reported to Simvue
with Run() as run:
# Specify a run name, metadata (dict), tags (list), description, folder
run.init('example-run-name',
{'learning_rate': 0.001, 'training_steps': 2000, 'batch_size': 32}, # Metadaata
['tensorflow'], # Tags
'This is a test.', # Description
'/Project-A/part1') # Folder full path
# Set folder details if necessary
run.set_folder_details('/Project-A/part1', # Folder full path
metadata={}, # Metadata
tags=['tensorflow'], # Tags
description='This is part 1 of a test') # Description
# Upload the code
run.save_file('training.py', 'code')
# Upload an input file
run.save_file('params.in', 'input')
# Add an alert (the alert definition will be created if necessary)
run.create_metric_threshold_alert(
name='loss-too-high', # Name
rule='is above', # Rule
metric='loss', # Metric
frequency=1, # Frequency
window=1, # Window
threshold=10, # Threshold
notification='email' # Notification type
)
...
while not converged:
...
# Send metrics inside main application loop
run.log_metrics({'loss': 0.5, 'density': 34.4})
...
# Upload an output file
run.save_file('output.cdf', 'output')
# If we weren't using a context manager we'd need to end the run
# run.close()
License
Released under the terms of the Apache 2 license.
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 simvue-2.3.1.tar.gz.
File metadata
- Download URL: simvue-2.3.1.tar.gz
- Upload date:
- Size: 124.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42db322551993e94e6ceecdb83f9beae2afc8e898d6c4bdc5dab33e12fa14c11
|
|
| MD5 |
069c7885e85697d38cdb075d2116a479
|
|
| BLAKE2b-256 |
49cfeda312a86e385cfe4c73a44f291833b222dc1042bfdc3d8cd41c5305893c
|
Provenance
The following attestation bundles were made for simvue-2.3.1.tar.gz:
Publisher:
deploy.yaml on simvue-io/python-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simvue-2.3.1.tar.gz -
Subject digest:
42db322551993e94e6ceecdb83f9beae2afc8e898d6c4bdc5dab33e12fa14c11 - Sigstore transparency entry: 872121098
- Sigstore integration time:
-
Permalink:
simvue-io/python-api@e868681059b6a2461eda622ae859d684b22abbd2 -
Branch / Tag:
refs/tags/v2.3.1 - Owner: https://github.com/simvue-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yaml@e868681059b6a2461eda622ae859d684b22abbd2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file simvue-2.3.1-py3-none-any.whl.
File metadata
- Download URL: simvue-2.3.1-py3-none-any.whl
- Upload date:
- Size: 157.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba3e20eb33c6eebe2148c1b18020af1c56df489bfc993402db288dbcacd2308c
|
|
| MD5 |
f083686ed5deb0003646e9e4d77ff13b
|
|
| BLAKE2b-256 |
8d8744f21860b501345ede884f8db6a31de72850bb2e9ad73ef28841a78dc74f
|
Provenance
The following attestation bundles were made for simvue-2.3.1-py3-none-any.whl:
Publisher:
deploy.yaml on simvue-io/python-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simvue-2.3.1-py3-none-any.whl -
Subject digest:
ba3e20eb33c6eebe2148c1b18020af1c56df489bfc993402db288dbcacd2308c - Sigstore transparency entry: 872121101
- Sigstore integration time:
-
Permalink:
simvue-io/python-api@e868681059b6a2461eda622ae859d684b22abbd2 -
Branch / Tag:
refs/tags/v2.3.1 - Owner: https://github.com/simvue-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yaml@e868681059b6a2461eda622ae859d684b22abbd2 -
Trigger Event:
push
-
Statement type: