Skip to main content

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

Running directly on a supercomputer login-node

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())

Backends

PBS operations use LocalBackend by default and run on the current host. JobDescription.submit() also accepts any implementation of the public Backend interface, allowing alternate execution mechanisms to live in separate packages.

License

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

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.1.0.tar.gz (16.8 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.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pbspy-0.1.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pbspy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 823ec511e2e6acfe50273f4ed0466f70390386d37a6412198f2a2a72c0ae3ba8
MD5 2b3053f9f578b0887d318973d74d8537
BLAKE2b-256 b2182785c10019f5401299c7f3579b4a1c327bdd79e52f819d1b2ec2ec022e24

See more details on using hashes here.

Provenance

The following attestation bundles were made for pbspy-0.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: pbspy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pbspy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13a758930be2e97e3e0e7c1a616b51950702230be0a3c73453dff7325f074e31
MD5 799f9581e889fb8dfcf31718843cb247
BLAKE2b-256 2f84d2a734b59b4afcb4ef14cf6559cff2452864f957cb062457ca8c6cb1a512

See more details on using hashes here.

Provenance

The following attestation bundles were made for pbspy-0.1.0-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 Sentry Error logging StatusPage Status page