This release is a pre-release and may not be stable for production use.
oarpy: OAR job management in python
Installation
pip install oarpy
Documentation
The documentation of latest release is available at: http://oarpy.readthedocs.io/en/latest/
Getting started
Submit
Run an OAR job that prints “Hello world”:
from oarpy.oarjob import submit
job = submit(command='echo "Hello word"', name='helloword',
project='oarpy', core=1, gpu=False, walltime={'hours':2})
print(job)
job.wait()
if job.exit_code:
print('Failed:\n{}'.format(job.stderr))
elif job.exit_code is None:
print('Interrupted:\n{}'.format(job.stdout))
else:
print('Succes:\n{}'.format(job.stdout))
job.remove_logs()
Only “command” is required, all other arguments are optional. See documentation for more fine-grained control with the JobFactory and Resource classes.
Search
Find a job in case you know the job ID:
from oarpy.oarjob import Job
job = Job(1130922)
print(job)
Find a job in case you do not know the job ID (not all arguments are necessary):
from oarpy.oarjob import search
from oarpy import timeutils
import os
owner = os.getlogin()
start = timeutils.add(timeutils.now(),minutes=-10)
jobs = search(owner=owner, start=start, name='quickstart',
project='oarpy', state='Terminated')
print(jobs)
Metadata
Release files for oarpy 0.1.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oarpy-0.1.0b2.tar.gz | 12.4 kB | Without provenance | Details for oarpy-0.1.0b2.tar.gz |
Release files / oarpy-0.1.0b2.tar.gz
| Download URL | oarpy-0.1.0b2.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12fa7114a10f92db45446948551400114b3ec3844199f0aab4f465eaef3e19ac
|
|
BLAKE2b-256 checksum How to use checksums |
81cc648da83e68e70142e7aee24b6a25497323acedd139accf0acb266af8ca3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.9
|
Security for oarpy 0.1.0b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.