Skip to main content

A python package for working with the Portable Batch System (PBS) job scheduler.

Project description

pbspy

PyPI - Version docs Python Version PyPI - License build

A python package for working with the Portable Batch System (PBS) job scheduler.

See the documentation for more information.

Example

from pbspy import Job, JobDescription

# Run a job with some explicit parameters
job_a = (
    JobDescription(name="job_a", ncpus=4, mem="192GB", walltime="00:05:00")
    .add_command(["echo", "A"])
    .submit()
)

# Submit another job that waits for job_a to finish
job_b = (
    JobDescription(name="job_b", ncpus=1, walltime="00:05:00", afterok=[job_a])
    .add_command(["echo", "B"])
    .submit()
)

# Get the result of the jobs
# result_a = job_a.result() # wait for job_a to finish and get result
(result_a, result_b) = Job.result_all(
    [job_a, job_b]
)  # wait for job_a and job_b to finish and get results
print("job_a:", result_a.output.strip())
print("job_b:", result_b.output.strip())

Output (partially executed):

✓ 124397435.gadi-pbs job_a
0:01:15 124397436.gadi-pbs job_b

Output (completed):

✓ 124397435.gadi-pbs job_a
✓ 124397436.gadi-pbs job_b

job_a: A
job_b: B

Licence

pbspy is licensed under the MIT License LICENSE or http://opensource.org/licenses/MIT.

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

pbspy-0.0.6.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pbspy-0.0.6-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pbspy-0.0.6.tar.gz.

File metadata

  • Download URL: pbspy-0.0.6.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pbspy-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c4d1042c5c0a1e447750b429103f0cd5a1bebd5d50178ef0a8604f534f68bdd8
MD5 4bf7846f11df1b5ca84244c1382f1d8f
BLAKE2b-256 791ae23e5e75328eb31e7655b29f3641dd9e3ad2133859d2f7e02dd75ede4f50

See more details on using hashes here.

Provenance

The following attestation bundles were made for pbspy-0.0.6.tar.gz:

Publisher: cd.yml on MaterialsPhysicsANU/pbspy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pbspy-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pbspy-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pbspy-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b1a052a9bac062749699d99ea6017e8dfdafcff6b88bfc9ac26df9e16e8cc768
MD5 dd5f6174950af6b014a56597a7454bd4
BLAKE2b-256 4b0a6712237b8f7902469815d095ef7ea25643e9aebfffa82ed5eba3b1155934

See more details on using hashes here.

Provenance

The following attestation bundles were made for pbspy-0.0.6-py3-none-any.whl:

Publisher: cd.yml on MaterialsPhysicsANU/pbspy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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