Skip to main content

Python binding for OAR

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oarpy-0.1.0b1.tar.gz (13.0 kB view details)

Uploaded Source

File details

Details for the file oarpy-0.1.0b1.tar.gz.

File metadata

  • Download URL: oarpy-0.1.0b1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for oarpy-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 96cf827d4ba6d3fee163fa3c342cc8213132dd1063e8df14ebb588111c077675
MD5 b9beb9f4568b8e19572d246dfd10775d
BLAKE2b-256 434c3f36879ddd873bc30cd470104d12f7d3fb16292a87e78d91fa4594f5c08b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page