OneWorkflow
OneWorkflow is a Python library for creating and executing workflows on local machine or on the OneCompute cloud platform. This library simplifies the development and management of workflows, providing an easy-to-use interface for handling complex tasks efficiently.
Its rich features empower developers to build workflows that effortlessly handle complex tasks. Whether running workflows on a local machine or utilizing the power of the cloud, OneWorkflow ensures consistent and reliable execution.
This library allows developers to tap into its extensive range of capabilities, including advanced job management, data integration, error handling, and scalability. OneWorkflow simplifies the implementation of intricate workflows, allowing developers to focus on their core objectives while ensuring a smooth end-to-end user experience.
Usage/Examples
import asyncio
from dnv.onecompute.flowmodel import WorkUnit
from dnv.oneworkflow.composite_executable_command import (
CompositeExecutableCommand as SequentialCmd,
)
from dnv.oneworkflow.oneworkflowclient import OneWorkflowClient
from dnv.oneworkflow.python_command import PythonCommand
# Create OneWorkflow Client
client = OneWorkflowClient(
workspace_id="TestWorkflow",
workspace_path=r"C:\MyWorkspace",
application_id="ImproveWorkflowWorkerHost",
executable_name="ImproveFlowWorker",
)
# Authenticate with Veracity
client.login()
# Upload Input Files
client.upload_files()
# Create Commands
pre_process_py_cmd = PythonCommand(filename="preprocessscript.py")
post_process_py_cmd = PythonCommand(filename="postprocessscript.py")
sequential_cmd = SequentialCmd(
[pre_process_py_cmd, post_process_py_cmd], r"C:\LoadCase"
)
# Create Work Unit
work_unit = (
WorkUnit(sequential_cmd)
.input_directory(r"C:\LoadCase")
.output_directory(r"C:\Results")
)
# Run Workflow
job_id = asyncio.run(client.run_workflow_async(work_unit))
assert job_id is not None, "Job Id is done"
# Download Results & Logs
client.download_job_logs(job_id)
asyncio.run(client.download_result_files_async(job_id))
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 OneWorkflow and providing timely assistance to our users.
Metadata
Release files for dnv-oneworkflow 1.1.2
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_oneworkflow-1.1.2.tar.gz | 59.3 kB | Without provenance | Details for dnv_oneworkflow-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dnv_oneworkflow-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for dnv_oneworkflow-1.1.2-py3-none-any.whl |
Total release size: 132.6 kB
Release files / dnv_oneworkflow-1.1.2.tar.gz
| Download URL | dnv_oneworkflow-1.1.2.tar.gz |
|---|---|
| Size | 59.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc763bdf4ba17cb62b188b3750bbaf293bc0d970213f823fe893e8d6805c0dcb
|
|
BLAKE2b-256 checksum How to use checksums |
29bf197b7e39fbc7fe4335255073b32fd2ed4b37718d9c5aa6fbcf1b9844fb08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Release files / dnv_oneworkflow-1.1.2-py3-none-any.whl
| Download URL | dnv_oneworkflow-1.1.2-py3-none-any.whl |
|---|---|
| Size | 73.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8b23c6564647227f132a506c0a7515b966a1f38c62a209cba142f31c663ca0b
|
|
BLAKE2b-256 checksum How to use checksums |
1411c6584a3c7d03e129ab3d23eb7b0772c0987601991152db974cc2acf8aee8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Security for dnv-oneworkflow 1.1.2
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.