Skip to main content

A package for processing PBS Pro accounting records

Project description

pbsparse

A library for loading and processing PBS Professional accounting records.

Details

The PBS Professional scheduler stores event records for each created job in plain-text files called accounting logs. While these records do not contain all of the information presented in the qstat command, they provide a large subset and are useful for gauging system usage patterns, debugging job issues, and more.

PBS Pro does provide the tracejob command to query the accounting logs on the command line.

This pbsparse library allows for easy loading of PBS Pro accounting records into Python scripts for analysis. All of the difficult work of robustly parsing each accounting record is handled for you.

Installation

Simply install from PyPI using pip:

$ python3 -m pip install pbsparse

Usage

The main interface to load records is the get_pbs_records function. For example, if you wanted to get all jobs by their start record, you could use the following:

from pbsparse import get_pbs_records

job_starts = get_pbs_records("/pbs/accounting/20250301", type_filter = "S")

This function allows for extensive filtering options.

You can also use the PbsRecord class directly:

from pbsparse import PbsRecord

with open("/pbs/accounting/20250301", "r") as pbs_file:
    for line in pbs_file:
        # Read data into object and process metadata
        record = PbsRecord(record, True)
        print(record)

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

pbsparse-0.2.3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

pbsparse-0.2.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file pbsparse-0.2.3.tar.gz.

File metadata

  • Download URL: pbsparse-0.2.3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pbsparse-0.2.3.tar.gz
Algorithm Hash digest
SHA256 7e25b9f01c247a235b0d8c7133857f5652edb389fcba0c4f0e8671f32646ae53
MD5 8fce55e66d1a73f49af18eaefc852950
BLAKE2b-256 c6edae9cf1287ab2908a177ba36e12cda5aab3ac3f9604f9ae4ea6a186a1af52

See more details on using hashes here.

Provenance

The following attestation bundles were made for pbsparse-0.2.3.tar.gz:

Publisher: publish-to-pypi.yml on NCAR/pbsparse

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

File details

Details for the file pbsparse-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: pbsparse-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pbsparse-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 07abe5ffa66933d7cc3a2b355b3dacdfbb1f7e6ee44f9ebba23055fd48fe2ffa
MD5 02ab5e2d6017bc075ab5a7e62164a677
BLAKE2b-256 56d94b64916ef459b129dd4835092d9a9b74ac5d0ebec8bad341778633878f01

See more details on using hashes here.

Provenance

The following attestation bundles were made for pbsparse-0.2.3-py3-none-any.whl:

Publisher: publish-to-pypi.yml on NCAR/pbsparse

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