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
Built Distribution
Close
Hashes for dnv-sesam-commands-5.16.0.124.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698c4b4635fbdb7d6c7d77c286aac8079c0c042ed300d9c18476d5f6cad4d9f5 |
|
MD5 | af04c779e0630a970281611912830642 |
|
BLAKE2b-256 | d6721bc7ac647bd079e94e8da7f0dc8d99942a2f6d63e8ffdb105be16c9c18a9 |
Close
Hashes for dnv_sesam_commands-5.16.0.124-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f683ab0eff64417fd290994aaac623702241e34d5edc5e80e00078175e318f8 |
|
MD5 | f1a90e52b2a9a271f2695d5012ca2ee6 |
|
BLAKE2b-256 | 6368ef23f386afa5e3e33468b3271f955a45173b51ff3376052fd792b07c71f6 |