Metadata-Version: 2.4
Name: vivarium-cluster-tools
Version: 5.0.1
Summary: Shared cluster, Jobmon, logging and notification helpers for Vivarium tools.
Author-email: The vivarium developers <vivarium.dev@gmail.com>
License: BSD-3-Clause
Project-URL: Homepage, https://github.com/ihmeuw/vivarium-suite
Project-URL: Source, https://github.com/ihmeuw/vivarium-suite/tree/main/libs/cluster-tools
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: BSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.11
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: vivarium-dependencies[click,loguru,requests]<3.0.0
Requires-Dist: vivarium-build-utils<5.0.0,>=4.0.0
Provides-Extra: cluster
Requires-Dist: jobmon_installer_ihme; extra == "cluster"
Provides-Extra: test
Requires-Dist: vivarium-dependencies[pytest]; extra == "test"
Requires-Dist: pytest-vivarium; extra == "test"
Provides-Extra: docs
Requires-Dist: vivarium-dependencies[ipython,matplotlib,sphinx]; extra == "docs"
Provides-Extra: interactive
Requires-Dist: vivarium-dependencies[interactive]; extra == "interactive"
Provides-Extra: lint
Requires-Dist: vivarium-dependencies[lint]; extra == "lint"
Requires-Dist: types-setuptools; extra == "lint"
Provides-Extra: dev
Requires-Dist: vivarium-cluster-tools[cluster,docs,interactive,lint,test]; extra == "dev"
Provides-Extra: ci-github
Requires-Dist: vivarium-cluster-tools[docs,lint,test]; extra == "ci-github"
Provides-Extra: ci-jenkins
Requires-Dist: vivarium-cluster-tools[ci_github,cluster]; extra == "ci-jenkins"
Dynamic: license-file

=======================
Vivarium Cluster Tools
=======================

.. image:: https://badge.fury.io/py/vivarium-cluster-tools.svg
    :target: https://badge.fury.io/py/vivarium-cluster-tools

.. image:: https://readthedocs.org/projects/vivarium-cluster-tools/badge/?version=latest
    :target: https://vivarium-cluster-tools.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

This library holds the shared code that Vivarium's cluster tools use:

- validation of Slurm projects, queues, runtimes and hardware, and the resource
  specification for a cluster job;
- a small facade over the Jobmon client, and the resolution of the conda env or
  venv that a Jobmon task runs in;
- ``build_artifacts_in_parallel``, which builds a model's data artifacts for many
  locations as one Jobmon workflow;
- Slack notifications when a workflow finishes;
- shared Click options and logging configuration.

**Supported Python versions: 3.11, 3.12, 3.13**

You can install ``vivarium-cluster-tools`` from PyPI with pip:

.. code-block:: bash

   pip install vivarium-cluster-tools

or build it from source by cloning the monorepo and installing this package:

.. code-block:: bash

   git clone https://github.com/ihmeuw/vivarium-suite.git
   cd vivarium-suite
   pip install libs/cluster-tools

.. note::

    The ``[cluster]`` extra (``pip install vivarium-cluster-tools[cluster]``) pulls
    in ``jobmon_installer_ihme`` from IHME's internal PyPI mirror. Code that submits
    Jobmon workflows, such as ``build_artifacts_in_parallel``, needs it. The base
    install resolves on public PyPI.

`Check out the docs! <https://vivarium-cluster-tools.readthedocs.io/en/latest/>`_
---------------------------------------------------------------------------------
