# Job Submitter
[](https://anaconda.org/ostrokach/jobsubmitter/)
[](https://ostrokach.gitlab.io/jobsubmitter/)
[](https://gitlab.com/ostrokach/jobsubmitter/commits/master/)
[](https://gitlab.com/ostrokach/jobsubmitter/commits/master/)
Package for running jobs on Sun Grid Engine (SGE) / PBS / Slurm clusters.
## Goals
- Provide an easy way to submit batch jobs from within a Jupyter notebook running on one of the nodes in the cluster.
## Example
```python
from jobsubmitter import JobOpts, JobSubmitter
JOB_ID = 'job_0'
ENV = {
'PATH': '/home/kimlab1/strokach/anaconda/bin:/usr/local/bin:/usr/bin:/bin',
'OMP_NUM_THREADS': '1',
}
jo = jobsubmitter.JobOpts(
job_id=JOB_ID,
working_dir=Path.cwd(),
nproc=1,
queue='medium',
walltime='24:00:00',
mem='16G',
env=ENV,
)
js = jobsubmitter.JobSubmitter('localhost')
futures = js.submit(system_commands, jo, deplay=0.1)
```
## Contributing
- Make sure all tests pass before merging into master.
- Follow the PEP8 / PyFlake / Flake8 / etc. guidelines.
- Add tests for new code.
- Try to document things.
- Break any / all of the above if you have a good reason.
# History
## 0.0.2 (2018-02-21)
* First release on PyPI.
[](https://anaconda.org/ostrokach/jobsubmitter/)
[](https://ostrokach.gitlab.io/jobsubmitter/)
[](https://gitlab.com/ostrokach/jobsubmitter/commits/master/)
[](https://gitlab.com/ostrokach/jobsubmitter/commits/master/)
Package for running jobs on Sun Grid Engine (SGE) / PBS / Slurm clusters.
## Goals
- Provide an easy way to submit batch jobs from within a Jupyter notebook running on one of the nodes in the cluster.
## Example
```python
from jobsubmitter import JobOpts, JobSubmitter
JOB_ID = 'job_0'
ENV = {
'PATH': '/home/kimlab1/strokach/anaconda/bin:/usr/local/bin:/usr/bin:/bin',
'OMP_NUM_THREADS': '1',
}
jo = jobsubmitter.JobOpts(
job_id=JOB_ID,
working_dir=Path.cwd(),
nproc=1,
queue='medium',
walltime='24:00:00',
mem='16G',
env=ENV,
)
js = jobsubmitter.JobSubmitter('localhost')
futures = js.submit(system_commands, jo, deplay=0.1)
```
## Contributing
- Make sure all tests pass before merging into master.
- Follow the PEP8 / PyFlake / Flake8 / etc. guidelines.
- Add tests for new code.
- Try to document things.
- Break any / all of the above if you have a good reason.
# History
## 0.0.2 (2018-02-21)
* First release on PyPI.
Release files for jobsubmitter 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jobsubmitter-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / jobsubmitter-0.1.0-py2.py3-none-any.whl
| Download URL | jobsubmitter-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cf347e71c89f80306a90b5e57a66afeeca65d593cd68813355975c1298fa6d64
|
|
BLAKE2b-256 checksum How to use checksums |
dc4133edca7bba722068d9b86735ec4086cbf3b46f281b14aa57dbfae3e23fc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |