{ "info": { "author": "Chris Sewell", "author_email": "chrisj_sewell@hotmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: AiiDA", "Programming Language :: Python" ], "description": "[![Build Status](https://travis-ci.org/chrisjsewell/aiida-cx1scheduler.svg?branch=master)](https://travis-ci.org/chrisjsewell/aiida-cx1scheduler)\n[![PyPI](https://img.shields.io/pypi/v/aiida-icl.svg)](https://pypi.python.org/pypi/aiida-icl/)\n[![Anaconda-Server Badge](https://anaconda.org/cjs14/aiida-icl/badges/version.svg)](https://anaconda.org/cjs14/aiida-icl)\n\n# aiida_icl\n\nInstallation:\n\n```console\n$ conda install -c cjs14 aiida-icl\n# or\n$ pip install aiida-icl\n```\n\nAiiDA plugin for working with HPC at Imperial College London.\n\nProvides the `aiida.scheduler` entry point: `pbspro_cx1`.\n\nTo create a new Computer:\n\n```python\nfrom aiida import load_profile()\nfrom aiida_icl.utils import get_cx1_computer\nload_profile()\ncomputer = get_cx1_computer('/path/to/workdir', '/Users/user_name/.ssh/id_rsa')\nprint(computer)\n```\n\n```text\nicl_cx1 (login.cx1.hpc.ic.ac.uk), pk: 8\n```\n\nTo generate calculation `metadata.options`:\n\n```python\nfrom aiida_icl.utils import JOB_CLASSES, get_calulation_options\noptions = get_calulation_options(JOB_CLASSES.general_24)\nprint(options)\n```\n\n```python\n{'resources': {'num_machines': 1, 'num_mpiprocs_per_machine': 32}, 'max_memory_kb': 10000000, 'max_wallclock_seconds': 86400, 'withmpi': True}\n```\n\n## Setting up an SSH Public and Private Keys\n\nRather than directly using a password to access the remote host, public key authentication is used, as a more secure authentication method. There are numerous explanations on the internet\n(including [here](https://help.ubuntu.com/community/SSH/OpenSSH/Keys)) and below follows a short setup guide\n(taken from [here](https://wiki.ch.ic.ac.uk/wiki/index.php?title=Mod:Hunt_Research_Group/SSHkeyfile)):\n\nFirst open a shell on the computer you want to connect from. Enter cd ~/.ssh.\nIf an `ls` shows to files called 'id_rsa' and 'id_rsa.pub' you already have a key pair.\nIf not, enter `ssh-keygen` Here is what the result should look like:\n\n```console\nheiko@clove:~/.ssh$ ssh-keygen\nGenerating public/private rsa key pair.\nEnter file in which to save the key (/Users/heiko/.ssh/id_rsa):\nEnter passphrase (empty for no passphrase):\nEnter same passphrase again:\nYour identification has been saved in id_rsa.\nYour public key has been saved in id_rsa.pub.\nThe key fingerprint is:\nf0:da:dc:77:cf:71:12:c8:50:dc:18:a9:8d:66:38:ae heiko@clove.ch.ic.ac.uk\nThe key's randomart image is:\n+--[ RSA 2048]----+\n| .o= |\n| .+ . |\n| . ..+ |\n| oo =o.. |\n| .S+ o . |\n| +.. . |\n| ..o . . o..|\n| E . . +o|\n| o|\n+-----------------+\n```\n\nYou should keep the standard directory and choose a suitably difficult passphrase.\n\nThe two file you just created are key and keyhole. The first file 'id_rsa' is the key.\nYou should not ever ever ever give it to anybody else or allow anyone to copy it.\nThe second file 'id_rsa.pub' the keyhole. It is public and you could give it to anyone.\nIn this case, give it to the hpc.\n\nIf you open 'id_rsa.pub' it should contain one line of, similar to:\n\n```console\nssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwRDgM+iQg7OaX/CFq1sZ9jl206nYIhW9SMBqsOIRvGM68/6o6uxZo/D4IlmQI9sAcU5FVNEt9dvDanRqUlC7ZtcOGOCqZsj1HTGD3LcOiPNHYPvi1auEwrXv1hDh4pmJwdgZCRnpewNl+I6RNBiZUyzLzp0/2eIyf4TqG1rpHRNjmtS9turANIv1GK1ONIO7RfVmmIk/jjTQJU9iJqje9ZSXTSm7rUG4W8q+mWcnACReVChc+9mVZDOb3gUZV1Vs8e7G36nj6XfHw51y1B1lrlnPQJ7U3JdqPz6AG3Je39cR1vnfALxBSpF5QbTHTJOX5ke+sNKo//kDyWWlfzz3rQ== heiko@clove.ch.ic.ac.uk\n```\n\nNow log in to the HPC and open (or create) the file '~/.ssh/authorized_keys'.\nIn a new line at the end of this file, you should add a comment (starting with #) about where that keypair comes from\nand then in a second line you should copy and paste the complete contents of your 'id_rsa.pub' file.\n\n```console\n#MAC in the office\nssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwRDgM+iQg7OaX/CFq1sZ9jl206nYIhW9SMBqsOIRvGM68/6o6uxZo/D4IlmQI9sAcU5FVNEt9dvDanRqUlC7ZtcOGOCqZsj1HTGD3LcOiPNHYPvi1auEwrXv1hDh4pmJwdgZCRnpewNl+I6RNBiZUyzLzp0/2eIyf4TqG1rpHRNjmtS9turANIv1GK1ONIO7RfVmmIk/jjTQJU9iJqje9ZSXTSm7rUG4W8q+mWcnACReVChc+9mVZDOb3gUZV1Vs8e7G36nj6XfHw51y1B1lrlnPQJ7U3JdqPz6AG3Je39cR1vnfALxBSpF5QbTHTJOX5ke+sNKo//kDyWWlfzz3rQ== heiko@clove.ch.ic.ac.uk\n```\n\nClose the 'authorized_keys' file and your connection to the HPC. Now connect again.\nYou will be asked for the passphrase for your keyfile. Enter it.\nYou should now be logged in to the HPC. If you are not asked for the passphrase but for the password of your account,\nthe Server does not accept your key pair.\n\nSo far, we have replaced entering the password for your account with entering the passphrase for your keypair.\nThis is where a so called SSH-agent comes handy. The agent will store your passphrases for you so you do not have\nto enter them anymore. Luckily MacOS has one build in, that should have popped up and asked you, whether you want the\nagent to take care of your passphrases. If you said 'YES', that was the very last time you ever heard or saw anything of\nit or your passphrase. Similar agents exist for more or less every OS. From now on you just have to\nenter hostname and username and you are logged in.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/chrisjsewell/aiida-cx1scheduler", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "aiida-icl", "package_url": "https://pypi.org/project/aiida-icl/", "platform": "", "project_url": "https://pypi.org/project/aiida-icl/", "project_urls": { "Homepage": "https://github.com/chrisjsewell/aiida-cx1scheduler" }, "release_url": "https://pypi.org/project/aiida-icl/0.3.4/", "requires_dist": [ "aiida-core (==1.0.0b5)", "ruamel.yaml", "flake8 (<3.8.0,>=3.7.0) ; extra == 'code_style'", "yapf (==0.26.0) ; extra == 'code_style'", "pre-commit (==1.14.4) ; extra == 'code_style'", "mock (==2.0.0) ; extra == 'testing'", "pgtest (==1.2.0) ; extra == 'testing'", "sqlalchemy-diff (==0.1.3) ; extra == 'testing'", "pytest (==3.6.3) ; extra == 'testing'", "wheel (>=0.31) ; extra == 'testing'", "coverage ; extra == 'testing'", "pytest-cov ; extra == 'testing'", "pytest-timeout ; extra == 'testing'", "pytest-regressions ; extra == 'testing'", "aiida-crystal17 (>=0.9.0b5) ; extra == 'testing'", "ase (<3.18) ; (python_version < \"3\") and extra == 'testing'" ], "requires_python": "", "summary": "AiiDA plugin interfacing with the Imperial College London cx1 HPC", "version": "0.3.4" }, "last_serial": 5578888, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "262378947d1613c80c36400836c20961", "sha256": "610467fc7d8f57d317babe5ab580dc1e9e658be1b38c47a408e066faf2ef9338" }, "downloads": -1, "filename": "aiida_icl-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "262378947d1613c80c36400836c20961", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8566, "upload_time": "2019-07-24T15:58:53", "url": "https://files.pythonhosted.org/packages/04/48/e6dfb19368dee4c85eab50dea93e62d70e2e37b30be815ec868955371b9d/aiida_icl-0.3.0-py2.py3-none-any.whl" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "fe341780814de04678fda70f5a1f791b", "sha256": "81284d6e0d77462b9278a3a01df0dc37d16c69060b95fee200189b6d1de0887b" }, "downloads": -1, "filename": "aiida_icl-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fe341780814de04678fda70f5a1f791b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8563, "upload_time": "2019-07-24T16:17:19", "url": "https://files.pythonhosted.org/packages/f4/55/47e84ec06e7dd1f9e4de0861b1d8e860c9651cc07b8c70393510fa37dee9/aiida_icl-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a5b773442f82ef014225a55e6855c323", "sha256": "4f75a3405e7feb1da6b623816d80807ae282632345deafbdf9ea9211a448d9f7" }, "downloads": -1, "filename": "aiida-icl-0.3.1.tar.gz", "has_sig": false, "md5_digest": "a5b773442f82ef014225a55e6855c323", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6191, "upload_time": "2019-07-24T16:17:20", "url": "https://files.pythonhosted.org/packages/bd/cf/2054b792ed92fcace093bbd41da3b73fdb6de2133cc5230c4b9dba942ea1/aiida-icl-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "383812b7ac4e8eb3c2e858454fd2bb83", "sha256": "9331214314d0e6be967607e1452c6c45292a0ea7e262f65638054ff6fc9d8e42" }, "downloads": -1, "filename": "aiida_icl-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "383812b7ac4e8eb3c2e858454fd2bb83", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11507, "upload_time": "2019-07-24T17:17:02", "url": "https://files.pythonhosted.org/packages/a3/c9/f7717953895dbb84a594d950c76e99cfae232bc84cf71dcd23a11799e705/aiida_icl-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "20b4629c73177fe8b6b227629edde6cc", "sha256": "421bd7ebb813e8c39658f9143de0186f769d5131faf36b11b7a26485ef781049" }, "downloads": -1, "filename": "aiida-icl-0.3.2.tar.gz", "has_sig": false, "md5_digest": "20b4629c73177fe8b6b227629edde6cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8984, "upload_time": "2019-07-24T17:17:03", "url": "https://files.pythonhosted.org/packages/e3/ac/27b7e08fad8d0ab8e0ba20c6933f8bc4f9ebf8cca0d3738d3ac175164231/aiida-icl-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "6eb335df89e83d3bc10e65dc63ac44be", "sha256": "4cdbbfbf60f4db92a1d2790f21e2a2f248d3fd19e710cbd7bc6627551ef179ae" }, "downloads": -1, "filename": "aiida_icl-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "6eb335df89e83d3bc10e65dc63ac44be", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11674, "upload_time": "2019-07-24T17:45:05", "url": "https://files.pythonhosted.org/packages/94/4c/2059dc85f1b92aa1f7879fdc048d7c92138c898af0b591458eb5f1395329/aiida_icl-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a5ff45e2de668ff6f7487d63c1f50c33", "sha256": "626f50584d52eafa4ecc3d89375d0c3cb51522819e074c0cde635c90214d56c6" }, "downloads": -1, "filename": "aiida-icl-0.3.3.tar.gz", "has_sig": false, "md5_digest": "a5ff45e2de668ff6f7487d63c1f50c33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9176, "upload_time": "2019-07-24T17:45:07", "url": "https://files.pythonhosted.org/packages/1d/eb/45c14e5e447f169d1861c09a95ed5630e49f4a43bcaf8bd2c7d8a69ad7a8/aiida-icl-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "0e1ab35e8c012dd1663de60e6cd2f9fa", "sha256": "e0d3ee4752fd611ab4225986f9829ab302ac9c9f669e35379574f0a946e1bb80" }, "downloads": -1, "filename": "aiida_icl-0.3.4-py3-none-any.whl", "has_sig": false, "md5_digest": "0e1ab35e8c012dd1663de60e6cd2f9fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11670, "upload_time": "2019-07-24T17:58:18", "url": "https://files.pythonhosted.org/packages/bc/43/3bb44f8f642bc0109b205f1edf46e7c96ecfa5364883acb0502265f361d3/aiida_icl-0.3.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b88cf1da241162337c4e5a45f1d0289f", "sha256": "5c82bd906d3dc9f621089cfb3db41940794ba7f1d73f2ed678f1ca8961c37050" }, "downloads": -1, "filename": "aiida-icl-0.3.4.tar.gz", "has_sig": false, "md5_digest": "b88cf1da241162337c4e5a45f1d0289f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9172, "upload_time": "2019-07-24T17:58:19", "url": "https://files.pythonhosted.org/packages/e8/00/93e990e97256b908c3fbcccaccc2214992f4f963292ad01363f3e7270a2d/aiida-icl-0.3.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e1ab35e8c012dd1663de60e6cd2f9fa", "sha256": "e0d3ee4752fd611ab4225986f9829ab302ac9c9f669e35379574f0a946e1bb80" }, "downloads": -1, "filename": "aiida_icl-0.3.4-py3-none-any.whl", "has_sig": false, "md5_digest": "0e1ab35e8c012dd1663de60e6cd2f9fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11670, "upload_time": "2019-07-24T17:58:18", "url": "https://files.pythonhosted.org/packages/bc/43/3bb44f8f642bc0109b205f1edf46e7c96ecfa5364883acb0502265f361d3/aiida_icl-0.3.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b88cf1da241162337c4e5a45f1d0289f", "sha256": "5c82bd906d3dc9f621089cfb3db41940794ba7f1d73f2ed678f1ca8961c37050" }, "downloads": -1, "filename": "aiida-icl-0.3.4.tar.gz", "has_sig": false, "md5_digest": "b88cf1da241162337c4e5a45f1d0289f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9172, "upload_time": "2019-07-24T17:58:19", "url": "https://files.pythonhosted.org/packages/e8/00/93e990e97256b908c3fbcccaccc2214992f4f963292ad01363f3e7270a2d/aiida-icl-0.3.4.tar.gz" } ] }