CP3SlurmUtils
=============
CP3SlurmUtils was written with the aim to be an utility for physicists of the
[CP3 institute](https://uclouvain.be/en/research-institutes/irmp/cp3) that would
facilitate the submission (and resubmission) of jobs to their computing cluster,
which is managed by [Slurm](https://slurm.schedmd.com/documentation.html). Most
of the physicists at CP3 that would use this utility are collaborating with the
CMS experiment at CERN.
In CP3SlurmUtils, jobs are defined via a submit configuration file written in
Python similar to the type of submit configuration file used in [CRABClient](https://github.com/dmwm/CRABClient),
the tool used by CMS users to submit jobs to the Worldwide LHC Computing Grid.
The utility creates then the batch scripts to be submitted with the Slurm __sbatch__ command.
The submission can be done on-the-go by the utility itself or later-on by the user.
CP3SlurmUtils provides the following features:
- handling of job stdout/stderr
- handling of a scratch directory
- handling of job exit codes
- handling of job input and output files
- setup of the CMS environment (optional)
For the copying of files to/from the worker nodes, the __cp__ command is used,
assuming there is a filesystem shared with the submission node.
## INSTALLATION
CP3SlurmUtils can be installed via the [Python Package Installer](https://pip.pypa.io/en/stable/),
or it can simply be downloaded from the git repository:
https://gitlab.cern.ch/cp3-cms/CP3SlurmUtils.
## CONFIGURATION
An example configuration file for CP3SlurmUtils named _defaults.cfg.example_
is included in the package. In the git repository, it can be found in the
__etc__ folder. In the distribution, it can be found in a sub-directory named
__etc/CP3SlurmUtils__.
CP3SlurmUtils will try to read the _defaults.cfg_ configuration file from the
following locations, in this order:
- /etc/CP3SlurmUtils/
- $xdg_config_dir/CP3SlurmUtils/ where $xdg_config_dir is each of the paths
defined by the environment variable $XDG_CONFIG_DIRS; if $XDG_CONFIG_DIRS is
not defined, $xdg_config_dir defaults to /etc/xdg/
- site.USER_BASE/etc/CP3SlurmUtils/ where site.USER_BASE is the python variable
that defines the location for a user installation
- $xdg_config_home/CP3SlurmUtils/ where $xdg_config_home is the environment
variable $XDG_CONFIG_HOME when defined and not empty; otherwise it defaults to
$HOME/.config
- $VIRTUAL_ENV/etc/CP3SlurmUtils/ when $VIRTUAL_ENV is defined and not empty
There is no installation or configuration script provided with this utility;
it is left to the user to put the _defaults.cfg_ configuration file in a visible
location or appropriately point the environment variable $XDG_CONFIG_DIRS or
$XDG_CONFIG_HOME to it.
## REPORTING BUGS
To report an issue/bug or to provide suggestions for enhancement/improvement,
open an issue in the git repository: https://gitlab.cern.ch/cp3-cms/CP3SlurmUtils.
Pull requests are also welcome.
Questions can be sent to cp3-support@uclouvain.be.
## LEGAL
CP3SlurmUtils is provided "as is" and with no warranty. This software is
distributed under the GNU General Public License; please see the file LICENSE
for details.
Raw data
{
"_id": null,
"home_page": "https://gitlab.cern.ch/cp3-cms/CP3SlurmUtils",
"name": "CP3SlurmUtils",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "slurm",
"author": "Andres Tanasijczuk (Universite\u0301 catholique de Louvain)",
"author_email": "cp3-support@listes.uclouvain.be",
"download_url": "https://files.pythonhosted.org/packages/bb/e2/251864c86d838267f934661916a05774dc436191725271cd7420da6a1ea6/CP3SlurmUtils-0.3.1.tar.gz",
"platform": null,
"description": "CP3SlurmUtils\n=============\n\nCP3SlurmUtils was written with the aim to be an utility for physicists of the\n[CP3 institute](https://uclouvain.be/en/research-institutes/irmp/cp3) that would\nfacilitate the submission (and resubmission) of jobs to their computing cluster,\nwhich is managed by [Slurm](https://slurm.schedmd.com/documentation.html). Most\nof the physicists at CP3 that would use this utility are collaborating with the\nCMS experiment at CERN.\n\nIn CP3SlurmUtils, jobs are defined via a submit configuration file written in\nPython similar to the type of submit configuration file used in [CRABClient](https://github.com/dmwm/CRABClient),\nthe tool used by CMS users to submit jobs to the Worldwide LHC Computing Grid.\nThe utility creates then the batch scripts to be submitted with the Slurm __sbatch__ command.\nThe submission can be done on-the-go by the utility itself or later-on by the user.\n\nCP3SlurmUtils provides the following features:\n\n- handling of job stdout/stderr\n- handling of a scratch directory\n- handling of job exit codes\n- handling of job input and output files\n- setup of the CMS environment (optional)\n\nFor the copying of files to/from the worker nodes, the __cp__ command is used,\nassuming there is a filesystem shared with the submission node.\n\n## INSTALLATION\n\nCP3SlurmUtils can be installed via the [Python Package Installer](https://pip.pypa.io/en/stable/),\nor it can simply be downloaded from the git repository:\nhttps://gitlab.cern.ch/cp3-cms/CP3SlurmUtils.\n\n## CONFIGURATION\n\nAn example configuration file for CP3SlurmUtils named _defaults.cfg.example_\nis included in the package. In the git repository, it can be found in the\n__etc__ folder. In the distribution, it can be found in a sub-directory named\n__etc/CP3SlurmUtils__.\n\nCP3SlurmUtils will try to read the _defaults.cfg_ configuration file from the\nfollowing locations, in this order:\n\n- /etc/CP3SlurmUtils/\n- $xdg_config_dir/CP3SlurmUtils/ where $xdg_config_dir is each of the paths\n defined by the environment variable $XDG_CONFIG_DIRS; if $XDG_CONFIG_DIRS is\n not defined, $xdg_config_dir defaults to /etc/xdg/\n- site.USER_BASE/etc/CP3SlurmUtils/ where site.USER_BASE is the python variable\n that defines the location for a user installation\n- $xdg_config_home/CP3SlurmUtils/ where $xdg_config_home is the environment\n variable $XDG_CONFIG_HOME when defined and not empty; otherwise it defaults to\n $HOME/.config\n- $VIRTUAL_ENV/etc/CP3SlurmUtils/ when $VIRTUAL_ENV is defined and not empty \n\nThere is no installation or configuration script provided with this utility;\nit is left to the user to put the _defaults.cfg_ configuration file in a visible\nlocation or appropriately point the environment variable $XDG_CONFIG_DIRS or\n$XDG_CONFIG_HOME to it.\n\n## REPORTING BUGS\n\nTo report an issue/bug or to provide suggestions for enhancement/improvement,\nopen an issue in the git repository: https://gitlab.cern.ch/cp3-cms/CP3SlurmUtils.\nPull requests are also welcome.\nQuestions can be sent to cp3-support@uclouvain.be.\n\n## LEGAL\n\nCP3SlurmUtils is provided \"as is\" and with no warranty. This software is\ndistributed under the GNU General Public License; please see the file LICENSE\nfor details.\n\n\n",
"bugtrack_url": null,
"license": "GPL-3.0-or-later",
"summary": "Utilities package to submit jobs to SLURM using as input a python sbatch configuration file.",
"version": "0.3.1",
"project_urls": {
"Homepage": "https://gitlab.cern.ch/cp3-cms/CP3SlurmUtils"
},
"split_keywords": [
"slurm"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6edfa7dc41ada92d29b889c9f5eb35b41864ecde346c3d9229a9e4e8c3eeead0",
"md5": "8e601114cf3e7cf47ff5cf372c5df713",
"sha256": "6814a813b99951606d089ce87bf0e405227c1a86482ff43d425f4371abe69dcc"
},
"downloads": -1,
"filename": "CP3SlurmUtils-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8e601114cf3e7cf47ff5cf372c5df713",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 54823,
"upload_time": "2024-06-14T10:25:20",
"upload_time_iso_8601": "2024-06-14T10:25:20.045650Z",
"url": "https://files.pythonhosted.org/packages/6e/df/a7dc41ada92d29b889c9f5eb35b41864ecde346c3d9229a9e4e8c3eeead0/CP3SlurmUtils-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bbe2251864c86d838267f934661916a05774dc436191725271cd7420da6a1ea6",
"md5": "8c6162b71ecbc861fc8d38077f97118d",
"sha256": "52d41755a346eb8c69a06950ab752313e95708f09228aca9b937650cc038b11a"
},
"downloads": -1,
"filename": "CP3SlurmUtils-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "8c6162b71ecbc861fc8d38077f97118d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 48914,
"upload_time": "2024-06-14T10:25:21",
"upload_time_iso_8601": "2024-06-14T10:25:21.597333Z",
"url": "https://files.pythonhosted.org/packages/bb/e2/251864c86d838267f934661916a05774dc436191725271cd7420da6a1ea6/CP3SlurmUtils-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-14 10:25:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "cp3slurmutils"
}