A Python library designed for developing and executing Sesam-enabled workflows on either local systems or OneCompute cloud platforms.
Project description
SesamCommands: Streamlining Sesam Workflows
For developers seeking to simplify the development and execution of Sesam workflows on both local and cloud platforms, the SesamCommands is an invaluable Python package. It empowers you to execute Sesam Core, Wasim, and Sestra applications within your workflows. The intricacies involved in the execution and management of workflows are taken care of by OneWorkflow and OneCompute Python packages. In summary, the SesamCommands Python library is optimal for developers aiming to enhance their Sesam workflow development process.
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_in_parallel_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 workflow/command asynchronously
asyncio.run(
run_managed_commands_in_parallel_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
Hashes for dnv_sesam_commands-5.18.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42646d2f6a45c4034830ff07af0903471db56d1f5d7ebe1622d3fbea41a0f461 |
|
MD5 | fad2e3f63fcb981bb7e54635d7cb9793 |
|
BLAKE2b-256 | ac84878c558e543712fc00f37459e74b2bc2bf72befad294f4ec18256fbacac3 |
Hashes for dnv_sesam_commands-5.18.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ed8cd2e5fcbfc477aeffdcff2068a032d5205e328953d531341c54cfa8e52e |
|
MD5 | 0667135741488c7c54882b5ad7af4774 |
|
BLAKE2b-256 | b0110779f0034e1c024d27aa533a09944922cccef2926d4447c635a45883ca92 |