A Python library designed for developing and executing Sesam-enabled workflows on either local systems or OneCompute cloud platforms.
Project description
Python Library for Sesam Workflows
This Python library is designed to streamline the development and execution of Sesam-integrated workflows. It supports both local systems and OneCompute cloud platforms.
Usage and Examples
For a more comprehensive understanding and additional examples, please visit the Homepage link provided on this page.
"""Demonstration of executing a SesamCoreCommand using the OneWorkflow client asynchronously."""
# Import necessary modules and functions
import asyncio
from dnv.oneworkflow.utils import (
CommandInfo,
one_workflow_client,
run_managed_commands_parallelly_async,
)
from dnv.sesam.commands import SesamCoreCommand
# Instantiate the OneWorkflow client with workspace ID and path
client = one_workflow_client(
workspace_id="TestWorkflow", workspace_path=r"C:\MyWorkspace", cloud_run=False
)
# Create an instance of the SesamCoreCommand class, specifying the command, input file name, and options
sesam_core_command = SesamCoreCommand(
command="uls", input_file_name="input.json", options="-v"
)
# Create an instance of the CommandInfo class, specifying the commands and load case folder name
cmd_info = CommandInfo(
commands=[sesam_core_command],
load_case_foldername="LoadCase1",
)
# Run the workflow/command asynchronously using the run_managed_commands_parallelly_async function
asyncio.run(
run_managed_commands_parallelly_async(
client=client,
commands_info=[cmd_info],
)
)
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
dnv-sesam-commands-5.17.0.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for dnv-sesam-commands-5.17.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9880d18364502af4a8130a735ddccf2964eebb0ccbf696c8450cca8a378f53 |
|
MD5 | 2d98c2e42654b29910fd2038f42f0479 |
|
BLAKE2b-256 | 824919274dd6fd9bc3d080234519277a270b01ab475dcb33e1193c6d0b941732 |
Close
Hashes for dnv_sesam_commands-5.17.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b90e5d8ce44f00472504ed3dd770b652632dae6343321e1b8ffdf140b8382ed |
|
MD5 | b1c3b98d5ecc40333a58a7b8fa9ed6d6 |
|
BLAKE2b-256 | c5e59d571d65668edb776f52066c267313e087ab6b66b5f49cf95c6c0278bf4d |