SesamCommands: Streamlining Sesam Workflows and Local Command Execution
SesamCommands is a comprehensive Python package designed to simplify the development and execution of Sesam workflows on both local and cloud platforms. It provides a suite of executors that streamline the local execution of Sesam commands, allowing developers to invoke commands as if operating from a command-line interface, independent of any workflow context.
This package not only simplifies the development process but also adeptly handles the complexities of command execution involving Sesam Core, Wasim, and Sestra applications. The intricacies of workflow execution and management are taken care of by the OneWorkflow and OneCompute Python packages.
In summary, SesamCommands is an invaluable tool for developers seeking to enhance their productivity and streamline 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 as part of a larger workflow using the OneWorkflow client.
This workflow could contain many more commands."""
# 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],
)
)
"""
This script demonstrates how to execute a standalone SesamCoreCommand for FLS aggregation, independent of any workflow context,
similar to running an application from the command line.
"""
import os
from dnv.sesam.commands import SesamCoreCommand
from dnv.sesam.commands.executors import execute_command
working_directory = os.path.join(
os.getcwd(), "data", "workspace_sesamcore_aggregation", "CommonFiles"
)
score_exe_cmd = SesamCoreCommand(
working_dir=working_directory,
command="accumulation accumulate",
input_file_name="accumulation-input-ElementScreening.json",
options=" ",
)
execute_command(score_exe_cmd)
License
Support
If you encounter any issues, have questions, or want to provide feedback, please get in touch with our support team at software.support@dnv.com. We are committed to continuously improving SesamCommands Python package and providing timely assistance to our users.
Metadata
Release files for dnv-sesam-commands 5.23.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dnv_sesam_commands-5.23.1.0.tar.gz | 4.0 MB | Without provenance | Details for dnv_sesam_commands-5.23.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dnv_sesam_commands-5.23.1.0-py3-none-any.whl | Python 3 | none | any | Details for dnv_sesam_commands-5.23.1.0-py3-none-any.whl |
Total release size: 8.1 MB
Release files / dnv_sesam_commands-5.23.1.0.tar.gz
| Download URL | dnv_sesam_commands-5.23.1.0.tar.gz |
|---|---|
| Size | 4.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
386c438c16a8b8022ad4a14947aa5bc6323e567cadf13d556e9377bc29f7b6bd
|
|
BLAKE2b-256 checksum How to use checksums |
f3d8d6660bda5a250a770da2c34dd8329062e2b7a020ffccf996670f99215c05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Release files / dnv_sesam_commands-5.23.1.0-py3-none-any.whl
| Download URL | dnv_sesam_commands-5.23.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0b85fba23390ebd6be137144dbb48fc707bd1d3aeb1c950b5d89fedb637c8c5
|
|
BLAKE2b-256 checksum How to use checksums |
76d3fe0f77a871919dcd522aa37eb6b62a719c52f991ba410e64dd296d54c619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Security for dnv-sesam-commands 5.23.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.