{ "info": { "author": "Axel Oehmichen", "author_email": "axelfrancois.oehmichen11@imperial.ac.uk", "bugtrack_url": null, "classifiers": [ "Environment :: Plugins", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# eAE for python\nPython pip package to interact with the eAE.\n\n# Install\n\neAE has two pre-requisites: requests and requests_toolbelt.\nThe simplest way to install eAE is to use the **Py**thon **P**ackage **I**ndex (PyPI):\n\n```bash\n# For a first installation\npip install eAE\n\n# For upgrading to the latest release\npip install --upgrade eAE\n```\n\n## *Example of an eAE script to submit a job*\n\n```python\n# We import the eAE package\nfrom eAE import eAE\n\ndirectory = ''\n\n# We create the connection to the backend\neae = eAE.eAE(\"admin\", \"admin\", \"127.0.0.1\")\n\n# We list the jobs with their associated parameters\nparameters = [\"first_analysis_type 0 1\"]\n\n# We list the required files for the analysis to be sent to the back-end\ndata_files = [\"job.py\", \"faust.txt\"]\n\n# We submit a job\nanswer = eae.submit_jobs(\"python2\", \"job.py\", parameters, data_files)\n\n# We check that the submission has been successful\nprint(answer)\n\n\"\"\"\n answer = { \"status\": \"OK\",\n \"jobID\": \"5c47530c6ad68800121c72be\",\n \"jobPosition\": 1,\n \"carriers\": [\n \"carrier:3000\"\n ]\n }\n\"\"\"\n\n# We check the current status of the job\nstatus = eae.get_job(answer['jobID'])\n\nprint(status)\n\n\"\"\"\n status = {\n 'status': ['eae_job_completed', 'eae_job_done', 'eae_job_running', 'eae_job_scheduled', 'eae_job_queued', 'eae_job_transferring_data', 'eae_job_created'], \n 'startDate': '2018-01-22T17:29:53.983Z', \n 'main': 'job.py', \n 'endDate': '2018-01-22T17:30:14.077Z', \n 'executorPort': '9000', \n 'executorIP': '127.0.0.1', \n 'stdout': 'Hello World !\\n', \n 'output': ['test_out.txt'], \n 'params': ['first_analysis_type 0 1'], \n 'statusLock': False, \n 'stderr': '', \n 'requester': 'admin', \n 'swiftData': {}, \n 'input': ['job.py', 'faust.txt'], \n 'message': {'context': 'success'}, \n '_id': '5c47530c6ad68800121c72be', \n 'type': 'python2',\n 'exitCode': 0\n }\n\"\"\"\n\n# We download the results\nresult = eae.get_job_result(directory, answer['jobID'])\n\n# We have a look at the computed result\n\"\"\"\nHello World !\nfirst_analysis_type\nThe Project Gutenberg EBook of Faust, by Johann Wolfgang Von Goethe\n\nThis eBook is for the use of anyone anywhere at no cost and with\nalmost no restrictions whatsoever. You may copy it, give it away or\nre-use it under the terms of the Project Gutenberg License included\nwith this eBook or online at www.gutenberg.net\n\"\"\"\n\"\"\"\n```\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aoehmichen/eae-python", "keywords": "eAE", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "eae", "package_url": "https://pypi.org/project/eae/", "platform": "", "project_url": "https://pypi.org/project/eae/", "project_urls": { "Homepage": "https://github.com/aoehmichen/eae-python" }, "release_url": "https://pypi.org/project/eae/0.1.3/", "requires_dist": [ "requests", "requests-toolbelt" ], "requires_python": "", "summary": "Pip package to interact with the eAE-interface", "version": "0.1.3" }, "last_serial": 4728563, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "10b3cadcc7bf89e24311171f1262b2b8", "sha256": "80ae5fbbcaf3a953d25a717882089d565b8835a9a17600672b6dead16eca9786" }, "downloads": -1, "filename": "eae-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "10b3cadcc7bf89e24311171f1262b2b8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3774, "upload_time": "2019-01-23T00:06:28", "url": "https://files.pythonhosted.org/packages/35/c8/277509d1bbfbc0882ccd87de339063777360fad4c698bcdce46cdcdd0f24/eae-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dd8d0a69b0b5f5be596d64e56107b68b", "sha256": "25778566b70741a3329ee607664f7cd1cf14698ca05f40cccd7d92811df46960" }, "downloads": -1, "filename": "eae-0.1.2.tar.gz", "has_sig": false, "md5_digest": "dd8d0a69b0b5f5be596d64e56107b68b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3628, "upload_time": "2019-01-23T00:06:31", "url": "https://files.pythonhosted.org/packages/09/fd/2deb56e79adf862115eefc27c04fa1c1510dc52c05a0ca1e0158c476c856/eae-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "91709535fbe936b17bd83a1714d9e5ac", "sha256": "2809f8408da5cc78ff00dfc567b2b414c8410250af1686d1b2d0288315b66850" }, "downloads": -1, "filename": "eae-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "91709535fbe936b17bd83a1714d9e5ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4858, "upload_time": "2019-01-23T00:49:39", "url": "https://files.pythonhosted.org/packages/53/f3/cd7cd41e1a4df14218e44070c0a28d45ff2bfadbc91d1df79c1524d676fc/eae-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ccd1114b9953e7e48b2a70b376d1f568", "sha256": "f4d51ec180021c3eaf3c2de6d5ffefa3f2a55bdff088aa9c0ad78d09a01f8729" }, "downloads": -1, "filename": "eae-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ccd1114b9953e7e48b2a70b376d1f568", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4132, "upload_time": "2019-01-23T00:49:41", "url": "https://files.pythonhosted.org/packages/fe/95/f79f53872ac74b88e6a0b5760f949e48ca92cf0028d8e777a942771b0aa4/eae-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "91709535fbe936b17bd83a1714d9e5ac", "sha256": "2809f8408da5cc78ff00dfc567b2b414c8410250af1686d1b2d0288315b66850" }, "downloads": -1, "filename": "eae-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "91709535fbe936b17bd83a1714d9e5ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4858, "upload_time": "2019-01-23T00:49:39", "url": "https://files.pythonhosted.org/packages/53/f3/cd7cd41e1a4df14218e44070c0a28d45ff2bfadbc91d1df79c1524d676fc/eae-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ccd1114b9953e7e48b2a70b376d1f568", "sha256": "f4d51ec180021c3eaf3c2de6d5ffefa3f2a55bdff088aa9c0ad78d09a01f8729" }, "downloads": -1, "filename": "eae-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ccd1114b9953e7e48b2a70b376d1f568", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4132, "upload_time": "2019-01-23T00:49:41", "url": "https://files.pythonhosted.org/packages/fe/95/f79f53872ac74b88e6a0b5760f949e48ca92cf0028d8e777a942771b0aa4/eae-0.1.3.tar.gz" } ] }