{ "info": { "author": "Michael Franklin | Kenzo-Hugo Hillion and Herve Menager", "author_email": "michael.franklin@petermac.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Topic :: Scientific/Engineering" ], "description": "# python-cwlgen\n\n(From original repository)\n\n[![Build Status](https://travis-ci.org/common-workflow-language/python-cwlgen.svg?branch=master)](https://travis-ci.org/common-workflow-language/python-cwlgen)\n[![codecov](https://codecov.io/gh/common-workflow-language/python-cwlgen/branch/master/graph/badge.svg)](https://codecov.io/gh/common-workflow-language/python-cwlgen)\n[![Documentation Status](https://readthedocs.org/projects/python-cwlgen/badge/?version=latest)](http://python-cwlgen.readthedocs.io/en/latest/?badge=latest)\n[![PyPI version](https://badge.fury.io/py/cwlgen.svg)](https://badge.fury.io/py/cwlgen)\n\nPython-cwlgen is a python library for the generation of CWL programmatically.\nIt supports the generation of CommandLineTool, Workflow and DockerRequirement.\nThe library works for both Python 2.7.12+ and 3.6.0.\n\n------------------------\n\n\n\nI've forked this repository to try and get my use of this repository working quickly without \nworrying too much about proper code etiquette. I have and will continue to submit merge requests \nback to the [original repository](https://github.com/common-workflow-language/python-cwlgen).\n\n[![Build Status](https://travis-ci.org/illusional/python-cwlgen.svg?branch=master)](https://travis-ci.org/common-workflow-language/python-cwlgen)\n[![codecov](https://codecov.io/gh/illusional/python-cwlgen/branch/master/graph/badge.svg)](https://codecov.io/gh/illusional/python-cwlgen)\n[![PyPI version](https://badge.fury.io/py/illusional.cwlgen.svg)](https://badge.fury.io/py/illusional.cwlgen)\n\n# Common Workflow Language\n\n[Common Workflow Language (CWL)](https://www.commonwl.org/v1.0/index.html) is a method to describe workflows,\n and any tools (software) that it may use. The [user guide](http://www.commonwl.org/user_guide/01-introduction/index.html)\n gives a gentle (and better) explanation of what its goals are, and how they are achieved, but broadly:\n \n 1. Stop writing bash scripts for long complex jobs.\n 2. Take pipelines anywhere (portability).\n 3. Try to enforce reproducibility guidelines.\n \nThis python repository is simply a python wrapper for _most_ of the classes (work in progress), \nallowing you to build the structure of the workflow in Python and have this module generate and export CWL for you.\n\n**Nb:** This isn't going to sanity or quality check Workflows or CommandLineTools for you, use \n[CWLTool](https://github.com/common-workflow-language/cwltool) or [WOMTool](https://cromwell.readthedocs.io/en/develop/WOMtool/) for that.\n\n## Quick-start guide\n\nThis is available through PIP!\n\n```\npip install illusional.cwlgen\n```\n\n## How it works ?\n\nThere's a pretty close copy of the cwl specifications ([Workflow](https://www.commonwl.org/v1.0/Workflow.html)| \n[CommandLineTool](https://www.commonwl.org/v1.0/CommandLineTool.html)), where the Python classes mirror the CWL spec. \nThis repository also includes some of the docstrings to give you context of classes and their properties.\n\nI've tried to include direct links to a classes documentation, however this isn't always possible.\n\nThere are some small examples in the `examples/` folder, however for whatever class you need, you simply just init \nthat class, for example:\n\n_Creating a CommandLineTool_\n```python\n# if using gitsubmodules, you can use the following import statement\nimport cwlgen as cwl\n\ntool_object = cwl.CommandLineTool(cwltool_id=\"echo-tool\", base_command=\"echo\", label=None, doc=None,\n cwl_version=\"v1.0\", stdin=None, stderr=None, stdout=None, path=None)\ntool_object.inputs.append(cwl.CommandInputParameter(\"myParamId\", label=None, secondary_files=None, param_format=None,\n streamable=None, doc=None, input_binding=None, default=None, param_type=None))\n \n# fill in the fields as required\n\n# to get the dictionary representation:\ndict_to_export = tool_object.get_dict()\n\n# dump using a yaml exporter\nyaml.dump(dict_to_export)\n```\n\nAll of the classes should work in a similar way. I've removed the `literal` representation from my fork as I \ndidn't want to use _ruamel_ at the moment. Otherwise file an issue and I'll have a look into it.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "cwl", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "illusional.cwlgen", "package_url": "https://pypi.org/project/illusional.cwlgen/", "platform": "", "project_url": "https://pypi.org/project/illusional.cwlgen/", "project_urls": null, "release_url": "https://pypi.org/project/illusional.cwlgen/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Fork of python-cwlgen | Generation of CWL programmatically. Avaible types: CommandLineTool, Workflow and Requirements", "version": "0.0.5" }, "last_serial": 4766112, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3d5feb93519d5527adccb606e9ef8978", "sha256": "c4376301165baa8bef8593c61cd96dc05f7af85816bcbc0371660f78954269fe" }, "downloads": -1, "filename": "illusional.cwlgen-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3d5feb93519d5527adccb606e9ef8978", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22307, "upload_time": "2019-01-31T04:31:41", "url": "https://files.pythonhosted.org/packages/f9/1e/0520831842923e7a59002f51ce8c6fecb808f879073d0a50688aff7c23dc/illusional.cwlgen-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0deb1676f0f8386a0f21c243ed91f6e0", "sha256": "b2d58f38e4c3e610e5236fa97740a0124c49dfa9a7dd57f2bdf05f137f8a6b73" }, "downloads": -1, "filename": "illusional.cwlgen-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0deb1676f0f8386a0f21c243ed91f6e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25493, "upload_time": "2019-01-31T04:42:11", "url": "https://files.pythonhosted.org/packages/00/82/5ab2b204905fee63dfa9588d3a4143214b67d43cd74bac35a4c0ed43367a/illusional.cwlgen-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "5fe2b93010b5b39dd37c07ccda8e351c", "sha256": "64061052475c58749faf0f8e668b29c4bf3a5d7466b322debabebb976e57959b" }, "downloads": -1, "filename": "illusional.cwlgen-0.0.3.tar.gz", "has_sig": false, "md5_digest": "5fe2b93010b5b39dd37c07ccda8e351c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25564, "upload_time": "2019-01-31T04:48:29", "url": "https://files.pythonhosted.org/packages/61/68/0ab239baa35a8ba9756abbf2e40fc435cafd3cb69ab26016e75531698db3/illusional.cwlgen-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "d10449fc46d53c2c2cc82c93e4e117b1", "sha256": "4c9e72512464a3450e10407cb7d1f416598d46b4b3bb4837646fbb6667298557" }, "downloads": -1, "filename": "illusional.cwlgen-0.0.4.tar.gz", "has_sig": false, "md5_digest": "d10449fc46d53c2c2cc82c93e4e117b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25558, "upload_time": "2019-01-31T21:48:40", "url": "https://files.pythonhosted.org/packages/67/4a/b9273eddd64d184e4afff656cc9aba055a46c2f84b8d345b09d1fcb2c255/illusional.cwlgen-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "8dd102caa2fb53b4bbd25fc336a451fa", "sha256": "1f7fcb5c500a12b4bbd8f75aa4815da42fa6d38fedf1d2f8e05c018cc8947ab1" }, "downloads": -1, "filename": "illusional.cwlgen-0.0.5.tar.gz", "has_sig": false, "md5_digest": "8dd102caa2fb53b4bbd25fc336a451fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25589, "upload_time": "2019-02-01T00:27:39", "url": "https://files.pythonhosted.org/packages/c8/a3/ec61d96308b7453f4c76d25a645949842564ca3428c9b6b1207d37599b66/illusional.cwlgen-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8dd102caa2fb53b4bbd25fc336a451fa", "sha256": "1f7fcb5c500a12b4bbd8f75aa4815da42fa6d38fedf1d2f8e05c018cc8947ab1" }, "downloads": -1, "filename": "illusional.cwlgen-0.0.5.tar.gz", "has_sig": false, "md5_digest": "8dd102caa2fb53b4bbd25fc336a451fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25589, "upload_time": "2019-02-01T00:27:39", "url": "https://files.pythonhosted.org/packages/c8/a3/ec61d96308b7453f4c76d25a645949842564ca3428c9b6b1207d37599b66/illusional.cwlgen-0.0.5.tar.gz" } ] }