{ "info": { "author": "ELIXIR Europe", "author_email": "vani11537@one.ducic.ac.in", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "# TES-cli\n\n[![Apache License](https://img.shields.io/badge/license-Apache%202.0-orange.svg?style=flat&color=important)](http://www.apache.org/licenses/LICENSE-2.0)\n![GitHub: latest tag](https://flat.badgen.net/github/tag/elixir-europe/TES-cli?color=cyan&icon=github)\n[![PyPI](https://img.shields.io/pypi/pyversions/tes-client.svg?style=flat)](https://pypi.python.org/pypi/tes-client)\n[![PyPI](https://img.shields.io/pypi/v/tes_client.svg?style=flat&color=bright-green)](https://pypi.python.org/pypi/tes_client)\n\nThis repository contains a [Bravado]-based client for a [modified] version of\nthe [Task Execution Service] API schema of the [Global Alliance for Genomics and\nHealth], as described in the [mock-TES] repository. The client was developed for\nthe use within the [TEStribute] task distribution logic application.\n\n## Usage\n\nTo use the client import it as follows in your Python code after\n[installation](#Installation):\n\n```py\nimport tes_client\n\nclient = tes_client.Client(\"http://localhost:9001/ga4gh/tes/v1/\")\n```\n\nIt is possible to supply a Bearer token, which will then be added to the\n`Authentication` header (prepended by `Bearer`) for every outbound call:\n\n```py\nclient = tes_client.Client(\n url=\"https://path.to/swagger.json\",\n jwt=\"SomET0kEn\"\n)\n```\n\n> Note that the indicated URL is valid when [mock-TES] was installed at the\n> default location on your local machine. When a different TES instance is\n> supposed to be used, replace the full URL (including `http://` or `https://`).\n\nAccess the [mock-TES] `POST /tasks/task-info` endpoint with, e.g.:\n\n```py\nresponse = client.getTaskInfo(\n cpu_cores=4,\n ram_gb=8,\n disk_gb=100,\n execution_time_min=10,\n)\n```\n\nAccess the [mock-TES] `POST /update-config` endpoint with, e.g.:\n\n```py\nresponse = client.updateTaskInfoConfig(\n currency=\"USD\",\n time_unit=\"MINUTES\",\n unit_costs={\n \"cpu_usage\": 1,\n \"memory_consumption\": 4,\n \"data_storage\": 10,\n \"data_transfer\": 20,\n },\n)\n```\n\nNote that the original TES endpoints are currently not implemented.\n\n## Installation\n\nYou can install `TES-cli` in one of two ways:\n\n### Manual installation\n\n```bash\ngit clone https://github.com/elixir-europe/TES-cli.git\ncd TES-cli\npython setup.py install\n```\n\n### Installation via package manager\n\n```bash\npip install drs_client\n```\n\nor (for development version)\n\n```bash\npip install -e git+https://github.com/elixir-europe/TES-cli.git#egg=tes_client\n```\n\n## Contributing\n\nThis project is a community effort and lives off your contributions, be it in\nthe form of bug reports, feature requests, discussions, or fixes and other code\nchanges. Please read the [contributing guidelines] if you want to contribute.\nAnd please mind the [code of conduct] for all interactions with the community.\n\n## Versioning\n\nDevelopment of the app is currently still in alpha stage, and current versioning\nis for internal use only. In the future, we are aiming to adopt [semantic\nversioning] that is synchronized to the versioning of [TEStribute] and\n[mock-TES] in order to ensure that these apps will be compatible as long as both\ntheir major and minor versions match.\n\n## License\n\nThis project is covered by the [Apache License 2.0] also available [shipped\nwith this repository](LICENSE).\n\n## Contact\n\nPlease contact the [project leader](mailto:alexander.kanitz@sib.swiss) for\ninquiries, proposals, questions etc. that are not covered by the\n[Contributing](#Contributing) section.\n\n## Acknowledgments\n\nThe project is a collaborative effort under the umbrella of the [ELIXIR Cloud\nand AAI] group. It was started during the [2019 Google Summer of Code] as part\nof the [Global Alliance for Genomics and Health] [organization].\n\n![logo banner]\n\n[Apache License 2.0]: \n[2019 Google Summer of Code]: \n[Bravado]: \n[contributing guidelines]: CONTRIBUTING.md\n[code of conduct]: CODE_OF_CONDUCT.md\n[ELIXIR Cloud and AAI]: \n[Global Alliance for Genomics and Health]: \n[logo banner]: logos/logo-banner.svg\n[mock-TES]: \n[modified]: \n[organization]: \n[semantic versioning]: \n[Task Execution Service]: \n[TEStribute]: \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/elixir-europe/TES-cli", "keywords": "ga4gh tes elixir client restful api app openapi swagger python bravado", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "tes-client", "package_url": "https://pypi.org/project/tes-client/", "platform": "", "project_url": "https://pypi.org/project/tes-client/", "project_urls": { "Homepage": "https://github.com/elixir-europe/TES-cli" }, "release_url": "https://pypi.org/project/tes-client/0.2.1/", "requires_dist": [ "bravado[fido]" ], "requires_python": ">=3", "summary": "bravado generated mock GA4GH TES client", "version": "0.2.1" }, "last_serial": 5915863, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "61755ad1dbfe704550492559204553fa", "sha256": "013902f919e0a7d93273ed1fcd2bcc759bce9ebac37437c0c12f9fdff230ae40" }, "downloads": -1, "filename": "tes_client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "61755ad1dbfe704550492559204553fa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 10663, "upload_time": "2019-08-25T05:12:11", "url": "https://files.pythonhosted.org/packages/1f/95/d891f7c91ee877029c6931aae4a70e51b063e50bbf860705fb22c7d00977/tes_client-0.1.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "d102b2fb161adb97ed112f1607e61152", "sha256": "dca4d7653f7a15478fa890fdf30f549ce9a435352c09c89132eacabaab987549" }, "downloads": -1, "filename": "tes_client-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d102b2fb161adb97ed112f1607e61152", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8424, "upload_time": "2019-10-02T03:32:09", "url": "https://files.pythonhosted.org/packages/bf/f1/a79c9c698387a57e789b190529d212d799d0a99d42407826ec945a094e19/tes_client-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dfa9c140d49d7bb7f351a36eeea0fea1", "sha256": "9443ac1c86f7e456032096398b328e8f55be1e931110d141be18937115bab167" }, "downloads": -1, "filename": "tes_client-0.2.1.tar.gz", "has_sig": false, "md5_digest": "dfa9c140d49d7bb7f351a36eeea0fea1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 11297, "upload_time": "2019-10-02T03:32:11", "url": "https://files.pythonhosted.org/packages/aa/45/37496b869fcc1a7255e5f7c058a7c9d60b7800b342c82d7ee8f1a017d169/tes_client-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d102b2fb161adb97ed112f1607e61152", "sha256": "dca4d7653f7a15478fa890fdf30f549ce9a435352c09c89132eacabaab987549" }, "downloads": -1, "filename": "tes_client-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d102b2fb161adb97ed112f1607e61152", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8424, "upload_time": "2019-10-02T03:32:09", "url": "https://files.pythonhosted.org/packages/bf/f1/a79c9c698387a57e789b190529d212d799d0a99d42407826ec945a094e19/tes_client-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dfa9c140d49d7bb7f351a36eeea0fea1", "sha256": "9443ac1c86f7e456032096398b328e8f55be1e931110d141be18937115bab167" }, "downloads": -1, "filename": "tes_client-0.2.1.tar.gz", "has_sig": false, "md5_digest": "dfa9c140d49d7bb7f351a36eeea0fea1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 11297, "upload_time": "2019-10-02T03:32:11", "url": "https://files.pythonhosted.org/packages/aa/45/37496b869fcc1a7255e5f7c058a7c9d60b7800b342c82d7ee8f1a017d169/tes_client-0.2.1.tar.gz" } ] }