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.
Website • Documentation
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_alert(name='loss-too-high', # Name
source='metrics', # Source
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
File details
Details for the file simvue-1.1.2.tar.gz
.
File metadata
- Download URL: simvue-1.1.2.tar.gz
- Upload date:
- Size: 83.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54475e2e5beb7da6b9e1f9b145d41cea91506bdf69f75e8bb163851e465e7347 |
|
MD5 | ae989bfe4eac51c5228ce7e94b11b918 |
|
BLAKE2b-256 | bbe4d231a5c0233ceaa5810d38a5eac5f4c8ade883ae2f7f9cf4c643fda2d01a |
Provenance
The following attestation bundles were made for simvue-1.1.2.tar.gz
:
Publisher:
deploy.yaml
on simvue-io/python-api
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
simvue-1.1.2.tar.gz
- Subject digest:
54475e2e5beb7da6b9e1f9b145d41cea91506bdf69f75e8bb163851e465e7347
- Sigstore transparency entry: 147026313
- Sigstore integration time:
- Predicate type:
File details
Details for the file simvue-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: simvue-1.1.2-py3-none-any.whl
- Upload date:
- Size: 92.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 577d4fa5493aeb41761f2dd22208618b7714f521ff3ca0d733d5f8dcf231fb1d |
|
MD5 | ddfbfb4451cfe8cf558a70c546c050fa |
|
BLAKE2b-256 | aaacf737a0207fc25b81039ca5367e96dfaf36a1708b8d0fcbdf2eb1f8cbc1ec |
Provenance
The following attestation bundles were made for simvue-1.1.2-py3-none-any.whl
:
Publisher:
deploy.yaml
on simvue-io/python-api
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
simvue-1.1.2-py3-none-any.whl
- Subject digest:
577d4fa5493aeb41761f2dd22208618b7714f521ff3ca0d733d5f8dcf231fb1d
- Sigstore transparency entry: 147026315
- Sigstore integration time:
- Predicate type: