Python-cwlgen is a python library for the generation of CWL programmatically. It supports the generation of CommandLineTool, Workflow and DockerRequirement. The library works for both Python 2.7.12+ and 3.6.0.
You can install python-cwlgen using pip with the following command:
pip install cwlgen
How it works ?
An example of usage is available in the
example/ folder of the repository (more details here)
CWL is developed by an informal, multi-vendor working group consisting of organizations and individuals aiming to enable scientists to share data analysis workflows. The CWL project is on Github.