htcondor的cli的python包装器
condorp的Python项目详细描述
condorpy: | Python interface for high throughput computing with HTCondor |
---|---|
Version: | 0.5.1 |
Author: | Scott Christensen |
Team: | Tethys Platform |
Homepage: | http://tethysplatform.org/condorpy/ |
License: | BSD 2-Clause |
说明:
condorpy是htcondor的命令行接口(cli)的包装器,支持从python创建提交和监视htcondor作业。必须安装htcondor才能使用condorpy。
安装:
$ pip install condorpy
代码示例:
>>> from condorpy import Job, Templates >>> job = Job('job_name', Templates.vanilla_transfer_files) >>> job.executable = 'job_script' >>> jobs.arguments = 'input_1 input_2' >>> job.transfer_input_files = 'input_1 input_2' >>> job.transfer_output_files = 'output' >>> job.submit()