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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pbsparse-0.2.4.tar.gz.
File metadata
- Download URL: pbsparse-0.2.4.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79471cc88430bb4e6ce44ac853b34c80e9cb31421597e271a16bdc7baa093607
|
|
| MD5 |
c0a9404666aa1fa9bb43e060e37fb803
|
|
| BLAKE2b-256 |
cdcc974b564feddeaf901277519abbc03c8a508269410834ba5b16b401ef73ae
|
Provenance
The following attestation bundles were made for pbsparse-0.2.4.tar.gz:
Publisher:
publish-to-pypi.yml on NCAR/pbsparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pbsparse-0.2.4.tar.gz -
Subject digest:
79471cc88430bb4e6ce44ac853b34c80e9cb31421597e271a16bdc7baa093607 - Sigstore transparency entry: 240941250
- Sigstore integration time:
-
Permalink:
NCAR/pbsparse@2d734ebd57b55adb4c8f8e4f8c435a6cb90db46c -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/NCAR
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@2d734ebd57b55adb4c8f8e4f8c435a6cb90db46c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pbsparse-0.2.4-py3-none-any.whl.
File metadata
- Download URL: pbsparse-0.2.4-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d360632ef3207f005772d037006cd6003384452b63ee21012604dfb406d13f0a
|
|
| MD5 |
4d50229ecb5270c2f14590f917476376
|
|
| BLAKE2b-256 |
e50136c57fe88d0f9b1071951482b532d32c38d5df0180dbc74d53d78727c71a
|
Provenance
The following attestation bundles were made for pbsparse-0.2.4-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on NCAR/pbsparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pbsparse-0.2.4-py3-none-any.whl -
Subject digest:
d360632ef3207f005772d037006cd6003384452b63ee21012604dfb406d13f0a - Sigstore transparency entry: 240941254
- Sigstore integration time:
-
Permalink:
NCAR/pbsparse@2d734ebd57b55adb4c8f8e4f8c435a6cb90db46c -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/NCAR
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@2d734ebd57b55adb4c8f8e4f8c435a6cb90db46c -
Trigger Event:
push
-
Statement type: