Python-cwlgen is a python library for the generation of CWL programmatically. It supports the generation of CommandLineTool 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 git+https://github.com/common-workflow-language/python-cwlgen.git#egg=python-cwlgen
An example of usage is available in the example/
folder of the repository.
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.