{ "info": { "author": "Jan-Christoph Klie", "author_email": "git@mrklie.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries", "Topic :: System :: Distributed Computing" ], "description": "# slurmee\n\n[![Build Status](https://travis-ci.org/jcklie/slurmee.svg?branch=master)](https://travis-ci.org/jcklie/slurmee)\n\nSimple Python 3 package to get information when running Python programs in [slurm](https://slurm.schedmd.com/documentation.html). \n\n## Usage\n\n```python\nimport slurmee\n\nprint(f\"Slurm job id: {slurmee.get_job_id()}\")\nprint(f\"Slurm job name: {slurmee.get_job_name()}\")\nprint(f\"Slurm submit dir: {slurmee.get_submit_dir()}\")\nprint(f\"Slurm job nodelist: {slurmee.get_job_nodelist()}\")\nprint(f\"Slurm submit host: {slurmee.get_submit_host()}\")\nprint(f\"Slurm job num_nodes: {slurmee.get_job_num_nodes()}\")\nprint(f\"Slurm cpus on node: {slurmee.get_cpus_on_node()}\")\nprint(f\"Slurm ntasks: {slurmee.get_ntasks()}\")\nprint(f\"Slurm nodeid: {slurmee.get_nodeid()}\")\n```\n\nMethods return `None` if not running inside of slurm. It can be used to check this condition e.g. \n\n```python\nif slurmee.get_job_id():\n print(\"Running inside of slurm!\")\n```\n\n## Development\n\nThis package has no external runtime dependencies. The tests can be run via \n\n make test\n\nTo install the dependencies for generating the docs and releasing the package, in a virtual environment, run\n\n pip install -e \".[test,dev,doc]\"", "description_content_type": "text/markdown; charset=UTF-8", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jcklie/slurmee", "keywords": "slurm", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "slurmee", "package_url": "https://pypi.org/project/slurmee/", "platform": "", "project_url": "https://pypi.org/project/slurmee/", "project_urls": { "Bug Tracker": "https://github.com/jcklie/slurmee/issues", "Documentation": "https://github.com/jcklie/slurmee", "Homepage": "https://github.com/jcklie/slurmee", "Source Code": "https://github.com/jcklie/slurmee" }, "release_url": "https://pypi.org/project/slurmee/0.1.0rc3/", "requires_dist": null, "requires_python": ">=3.5.0", "summary": "Simple Python 3 package to get information when running Python programs in slurm", "version": "0.1.0rc3" }, "last_serial": 5649125, "releases": { "0.1.0rc2": [ { "comment_text": "", "digests": { "md5": "d2397960addc87829e25f59c90bdb7a2", "sha256": "ddb45b5a6aa9ea46c6a7490996669ae20faf1714b96217f5fe7d0b5b6045e8ed" }, "downloads": -1, "filename": "slurmee-0.1.0rc2.tar.gz", "has_sig": false, "md5_digest": "d2397960addc87829e25f59c90bdb7a2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 4239, "upload_time": "2019-08-06T15:38:38", "url": "https://files.pythonhosted.org/packages/49/33/d9f02064f0be7a497b5a9f4d2196e3f10a63121e18640c648f7f92c726e5/slurmee-0.1.0rc2.tar.gz" } ], "0.1.0rc3": [ { "comment_text": "", "digests": { "md5": "59eacc8878f8abb2f9e018218287daec", "sha256": "eeec6f6d33ab7c961ad19bc98b9e359fe748a50214826a3d1ee0aa5afcbf5aae" }, "downloads": -1, "filename": "slurmee-0.1.0rc3.tar.gz", "has_sig": false, "md5_digest": "59eacc8878f8abb2f9e018218287daec", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 4620, "upload_time": "2019-08-08T09:40:10", "url": "https://files.pythonhosted.org/packages/0c/98/551c1ffb560de199f1b449b16d3eebc2ade7c414c60e7434a07f9d69216f/slurmee-0.1.0rc3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "59eacc8878f8abb2f9e018218287daec", "sha256": "eeec6f6d33ab7c961ad19bc98b9e359fe748a50214826a3d1ee0aa5afcbf5aae" }, "downloads": -1, "filename": "slurmee-0.1.0rc3.tar.gz", "has_sig": false, "md5_digest": "59eacc8878f8abb2f9e018218287daec", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 4620, "upload_time": "2019-08-08T09:40:10", "url": "https://files.pythonhosted.org/packages/0c/98/551c1ffb560de199f1b449b16d3eebc2ade7c414c60e7434a07f9d69216f/slurmee-0.1.0rc3.tar.gz" } ] }