Metadata-Version: 2.1
Name: slurm_completed_logs_utils
Version: 0.4.1
Summary: Collection of utilities for parsing the SLURM Completed Logs file.
Home-page: https://github.com/jai-python3/slurm-completed-logs-utils
Author: Jaideep Sundaram
Author-email: jai.python3@gmail.com
Keywords: slurm_completed_logs_utils
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.10
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: Click >=7.0
Requires-Dist: Rich
Requires-Dist: pydantic
Requires-Dist: PyYAML

==========================
SLURM Completed Logs Utils
==========================

Collection of utilities for processing SLURM Completed Logs


Usage
-----

.. code-block:: shell

    pip install slurm-completed-logs-utils

Integrate into your code:

.. code-block:: python

    from slurm_completed_logs_utils import SlurmCompletedLogsParser as Parser

    infile = "/mnt/slurm/slurm_completed_jobs.log"
    parser = Parser()
    records = parser.get_records(infile)
    for record in records:
        print(f"job id: {record.jobid} status: {record.jobstate} name: {record.name}")


Exported console script
-----------------------

* slurm-log-to-sqlite: Convert SLURM Completed Logs to SQLite database


=======
History
=======

0.1.0 (2024-08-01)
------------------

* First release on PyPI.
