clacri / pyjob

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyJob

Python-controlled job execution across multiple platforms

PyPi Package Python Versions Travis Build

Installation

$> git clone https://github.com/fsimkovic/pyjob.git
$> cd pyjob
$> python setup install

Examples

  1. To run a script called run.sh on a local machine
>>> from pyjob import Job
>>> j = Job('local')
>>> j.submit('run.sh', nproc=1)
>>> j.wait()
  1. To run a script called run.sh on a SGE management platform
>>> from pyjob import Job
>>> j = Job('sge')
>>> j.submit('run.sh')
>>> j.wait()
  1. To run a script called run.sh on a LSF management platform
>>> from pyjob import Job
>>> j = Job('lsf')
>>> j.submit('run.sh')
>>> j.wait()

About

License:MIT License


Languages

Language:Python 100.0%