Skip to main content

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)

Release files for pbsparse 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pbsparse 0.2.6
File Size Uploaded
pbsparse-0.2.6.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pbsparse 0.2.6
File Interpreter ABI Platform
pbsparse-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / pbsparse-0.2.6.tar.gz

Download URL pbsparse-0.2.6.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a69a80b956a1c85f76797773aa4bc33962c90bc8746d0b062c2cf7ff98fcbb4d
BLAKE2b-256 checksum
How to use checksums
f07b7ab2ec15f00b636e4abba3cf8d279ea89fc6884e377a325474d5099b2311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 27, 2026.

Transparency log

Release files / pbsparse-0.2.6-py3-none-any.whl

Download URL pbsparse-0.2.6-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83ae0a1cb2789fd02a31c01c341390ee0d230d36c9a8fdb1c2ec96ad4b14074c
BLAKE2b-256 checksum
How to use checksums
2d9028f44cc514bb5d47a94756f6d662e9a689bfacea567988b972861f3c903d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

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