{ "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": "[![PyPI version](https://badge.fury.io/py/drs-client.svg)](https://badge.fury.io/py/drs-client) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/drs_client)\n# DRS-cli\n\nThis repository contains a [Bravado]-based client for a mockup implementation of\nthe [Data Repository Service] API schema of the [Global Alliance for Genomics\nand Health], as described in the [mock-DRS] repository. The client was developed\nfor the 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 drs_client\n\nclient = drs_client.Client(\"http://localhost:9101/ga4gh/drs/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-DRS] was installed at the\n> default location on your local machine. When a different DRS instance is\n> supposed to be used, replace the full URL (including `http://` or `https://`).\n\nAccess the [mock-DRS] `GET /objects/{object_id}` endpoint with, e.g.:\n\n```py\nresponse = client.GetObject(\"a001\")\n```\n\nAccess the [mock-DRS] `POST /update-db` endpoint with, e.g.:\n\n```py\nresponse = client.updateDatabaseObjects(\n clear_db=True,\n objects=[\n {\n \"access_methods\": [\n {\n \"access_id\": \"string\",\n \"access_url\": {\"headers\": [\"Authorization\"], \"url\": \"string\"},\n \"region\": \"us-east-1\",\n \"type\": \"s3\",\n }\n ],\n \"aliases\": [\"string\"],\n \"checksums\": [{\"checksum\": \"string\", \"type\": \"string\"}],\n \"created\": \"string\",\n \"description\": \"string\",\n \"id\": \"string\",\n \"mime_type\": \"application/json\",\n \"name\": \"string\",\n \"size\": 0,\n \"updated\": \"string\",\n \"version\": \"string\",\n },\n ],\n)\n```\nthe objects list can contain any number of such drs_object dicts and the clear_db\nindicates weather or not the db should be emptied before upload of specified \nobjects. \n\nFor further details on populating the DRS via the `POST /update-db` endpoint,\nplease see the documentation in the [mock-DRS] repository.\n\nNote that all other endpoints are currently not implemented.\n\n## Installation\n\nYou can install `DRS-cli` in one of two ways:\n\n### Manual installation\n\n```bash\ngit clone https://github.com/elixir-europe/DRS-cli.git\ncd DRS-cli\npython setup.py install\n```\n\n### Installation via package manager\n\n```bash\npip install -e git+https://github.com/elixir-europe/DRS-cli.git#egg=drs_client\n```\nor\n\n```bash\npip install drs_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[Data Repository Service]: \n[ELIXIR Cloud and AAI]: \n[Global Alliance for Genomics and Health]: \n[logo banner]: logos/logo-banner.svg\n[mock-DRS]: \n[organization]: \n[semantic versioning]:https://semver.org/\n[TESTribute]:https://github.com/elixir-europe/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/DRS-cli", "keywords": "ga4gh tes elixir client restful api app openapi swagger python bravado", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "drs-client", "package_url": "https://pypi.org/project/drs-client/", "platform": "", "project_url": "https://pypi.org/project/drs-client/", "project_urls": { "Homepage": "https://github.com/elixir-europe/DRS-cli" }, "release_url": "https://pypi.org/project/drs-client/0.2.0/", "requires_dist": [ "bravado[fido]" ], "requires_python": ">=3", "summary": "bravado generated mock GA4GH DRS client", "version": "0.2.0" }, "last_serial": 5915349, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a1cba2a94629de91642463be38945f33", "sha256": "060ce2910c38d7f4c87a7625772369cf6358a7dcef4e91f2c5e7d1d3399918c2" }, "downloads": -1, "filename": "drs_client-0.1.0-py3.6.egg", "has_sig": false, "md5_digest": "a1cba2a94629de91642463be38945f33", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=3", "size": 5645, "upload_time": "2019-10-01T23:26:32", "url": "https://files.pythonhosted.org/packages/62/31/04f33acbf74aad69ecec9b740fea9c1b5b0193b2c64da5a4582fdad879d9/drs_client-0.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "3902dc135ccd6894a33c2954bf65ed05", "sha256": "4a267de6c7326d000512019d303f2140a3942b5a3663f5b8d2381343e185a9b2" }, "downloads": -1, "filename": "drs_client-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3902dc135ccd6894a33c2954bf65ed05", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8637, "upload_time": "2019-10-01T23:26:30", "url": "https://files.pythonhosted.org/packages/d5/67/5e548b385d4371e97edfd09e21a7ee34be40c8d4b3ff313715ee7192d14c/drs_client-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6ef9f12c575137868b394e4885389db2", "sha256": "6f9e9dbf57783dda6e5ad82e4f6d7707b31e4ea649d7a1de9115d21e313b819b" }, "downloads": -1, "filename": "drs_client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6ef9f12c575137868b394e4885389db2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 11051, "upload_time": "2019-08-25T08:09:33", "url": "https://files.pythonhosted.org/packages/7d/9a/f821baee150b0d0430822e008b100742bebb6b04bb8b9a95e1a72b329cf4/drs_client-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e4020e03ca9d56c53c3c560bfadc4d48", "sha256": "fbd1f20dcdc5a9582a2fe1c3ba27cc8bd133e5394a90ed3b3edef15978472edc" }, "downloads": -1, "filename": "drs_client-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e4020e03ca9d56c53c3c560bfadc4d48", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8636, "upload_time": "2019-10-01T23:27:19", "url": "https://files.pythonhosted.org/packages/b8/7a/f23d244f2377cee3132f7498aa7a0e3f61ba05ce8dc25a89e90972fd8444/drs_client-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f519cf15c7785287ff22d64ed55b671", "sha256": "5ce4fd2eec4f4d264acd8c34281fd99c9fea968b48173d850e054ccb71806af1" }, "downloads": -1, "filename": "drs_client-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0f519cf15c7785287ff22d64ed55b671", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 11509, "upload_time": "2019-10-01T23:27:21", "url": "https://files.pythonhosted.org/packages/15/6d/68256c5a2f0eccdd156ba02423ee178cd9c13eb6a7445d851d27c32f702c/drs_client-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e4020e03ca9d56c53c3c560bfadc4d48", "sha256": "fbd1f20dcdc5a9582a2fe1c3ba27cc8bd133e5394a90ed3b3edef15978472edc" }, "downloads": -1, "filename": "drs_client-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e4020e03ca9d56c53c3c560bfadc4d48", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 8636, "upload_time": "2019-10-01T23:27:19", "url": "https://files.pythonhosted.org/packages/b8/7a/f23d244f2377cee3132f7498aa7a0e3f61ba05ce8dc25a89e90972fd8444/drs_client-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f519cf15c7785287ff22d64ed55b671", "sha256": "5ce4fd2eec4f4d264acd8c34281fd99c9fea968b48173d850e054ccb71806af1" }, "downloads": -1, "filename": "drs_client-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0f519cf15c7785287ff22d64ed55b671", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 11509, "upload_time": "2019-10-01T23:27:21", "url": "https://files.pythonhosted.org/packages/15/6d/68256c5a2f0eccdd156ba02423ee178cd9c13eb6a7445d851d27c32f702c/drs_client-0.2.0.tar.gz" } ] }