Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

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.0b2.tar.gz (12.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: oarpy-0.1.0b2.tar.gz
  • Upload date:
  • Size: 12.4 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.0b2.tar.gz
Algorithm Hash digest
SHA256 12fa7114a10f92db45446948551400114b3ec3844199f0aab4f465eaef3e19ac
MD5 30a4460975476d3c0a5b9dff597bc8ab
BLAKE2b-256 81cc648da83e68e70142e7aee24b6a25497323acedd139accf0acb266af8ca3f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0b2 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page