{ "info": { "author": "TaylorHere", "author_email": "taylorherelee@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "#Datastore Client\n\nProject TCT\u56fe\u50cf\u4e0e\u4fe1\u606f\u5b58\u50a8\u6570\u636e\u5e93 Datastore python\u7248Client\n\n##\u793a\u4f8b\n```python\n\nif __name__ == \"__main__\":\n #test code\n #this test code shows that:\n # crate a lot of raw datas\n # upload them to datastore\n # gather them togher to create a dataset name 'L-in-H'\n # and query them out in tow style\n log.getLogger().setLevel(log.INFO)\n\n #DataStore Client, next coming: DataStore Command Line Tools\n client = Client(\n graphql_entrance = 'http://127.0.0.1:8080',\n minio_entrance = '127.0.0.1:9001',\n graphql_path=\"/v1/graphql/\",\n minio_secure=False,\n download_path='./test_data'\n )\n \n\n for i in range(20):\n with open('./test_data/test{}.txt'.format(i), 'w+') as f:\n import random\n f.write(str('hi'))\n\n raws = client.raw.create('./test_data/', metadata={\n 'bucket': 'raws', #the name of the bucket\n 'source': 'tell me more detail where this object come from!',\n 'class_tree': {\n 'big_image': 'HSIL',\n 'cell': 'LSIL',\n 'instance': 'independent'\n },\n 'hi':'this is a test, you can add any key you want',\n 'but': 'every resources has a prototype keys that you must contains'\n }\n )\n\n err, dataset = client.dataset.create(name='L-in-H', metadata={\n \"note\": 'this dataset contains all the LSIL cell from HSIL big image'\n })\n\n err, dataset_with_raws = client.dataset.add_raws(\n dataset=dataset,\n resources=raws\n )\n\n err, raws = client.raw.query(\"\"\"\n {\n dataset_id: {\n _eq: 1\n }\n }\n \"\"\")\n\n err, res = client.queryer.query(\n \"\"\"\n {\n data_raw(where: {metadata: {_contains: {class_tree: {cell: \"LSIL\"}}}, tag: {_eq: \"latest\"}}, distinct_on: id) {\n id\n metadata\n tag\n version\n url\n name\n }\n }\n \"\"\"\n )\n raws = res['data']['data_raw']\n print(client.downloader.download(raws))\n\n for i in range(20):\n os.remove('test_data/test{}.txt'.format(i))\n\n\n```\n##Package Document\n\n\u4f7f\u7528python\u51fd\u6570 help(object)\u67e5\u770b\u6587\u6863\n\n##Datastore API Reference\n\n\u8bf7\u53c2\u9605\u5728\u7ebf\u6587\u6863", "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/TaylorHere", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "DatastoreClient", "package_url": "https://pypi.org/project/DatastoreClient/", "platform": "", "project_url": "https://pypi.org/project/DatastoreClient/", "project_urls": { "Homepage": "https://github.com/TaylorHere" }, "release_url": "https://pypi.org/project/DatastoreClient/0.0.9/", "requires_dist": null, "requires_python": "", "summary": "Python Client for Datastore APIs", "version": "0.0.9" }, "last_serial": 5713652, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3bbb477faf294fba7d5333057b84fd7b", "sha256": "6e6ac3ac6bf6e0173625881f1da504808cdae1121504f94355727a5ec5ca13ea" }, "downloads": -1, "filename": "DatastoreClient-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3bbb477faf294fba7d5333057b84fd7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6945, "upload_time": "2019-07-08T09:33:02", "url": "https://files.pythonhosted.org/packages/db/d5/b64914167aa433c548c2580fbdc0d8f6c235108bc54734b7987ca57ec969/DatastoreClient-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "3aa41d8114ba60596e1ee995196890fa", "sha256": "52acc1e92a68fe317d89929020e07b75f640d3cdcdd2843c76ff95696b87e34d" }, "downloads": -1, "filename": "DatastoreClient-0.0.2.tar.gz", "has_sig": false, "md5_digest": "3aa41d8114ba60596e1ee995196890fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6915, "upload_time": "2019-07-08T09:50:22", "url": "https://files.pythonhosted.org/packages/87/af/af7c4be29bae4f112dea787f27e1b617907de6aede270b099cce55ffe646/DatastoreClient-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1385b07198f28bed226bbd692cc9b24c", "sha256": "5abfd2703dc533557f695d01fb752187b951e749f46a2db5b6704d0a4a43f460" }, "downloads": -1, "filename": "DatastoreClient-0.0.3.tar.gz", "has_sig": false, "md5_digest": "1385b07198f28bed226bbd692cc9b24c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8623, "upload_time": "2019-07-09T06:51:03", "url": "https://files.pythonhosted.org/packages/33/c1/49b560003805346d57cbbcd93c91213f0908aa0fd520aca4bf2e58f8830b/DatastoreClient-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "b26f18c82474ba0aead2928de2cfa67e", "sha256": "58f5ff9e7f6c0b1fe060e5e216b676ef6070bc7f8889b69d461064f16fb3c4c2" }, "downloads": -1, "filename": "DatastoreClient-0.0.4.tar.gz", "has_sig": false, "md5_digest": "b26f18c82474ba0aead2928de2cfa67e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8641, "upload_time": "2019-07-09T06:56:38", "url": "https://files.pythonhosted.org/packages/38/65/fab4dc4db93ca83b7b50956fe8368ed11f18557951c86ce489201e9bdc5a/DatastoreClient-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "c115245e711ea03f8c4a3759a01d1121", "sha256": "a6dcf78fae62897265979e11c37c8b3adab04caf7a5dab741a6e4e75bc25716d" }, "downloads": -1, "filename": "DatastoreClient-0.0.5.tar.gz", "has_sig": false, "md5_digest": "c115245e711ea03f8c4a3759a01d1121", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8649, "upload_time": "2019-07-09T07:09:33", "url": "https://files.pythonhosted.org/packages/72/2c/53a7a5d63dce1ab34ca7e8c8912c49f3f504952acc98a125948818e58822/DatastoreClient-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "3063ab3d7d8e04886d770403e6d7578e", "sha256": "cf8fa35391b8d7fb5d030ea9640919385e2b89dc6a609c5b4145ec107f69ad5b" }, "downloads": -1, "filename": "DatastoreClient-0.0.6.tar.gz", "has_sig": false, "md5_digest": "3063ab3d7d8e04886d770403e6d7578e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8838, "upload_time": "2019-07-31T03:52:32", "url": "https://files.pythonhosted.org/packages/82/df/3826c3f23bec164e9bb50a615dfaf114d887105adc8f3555354a7a607383/DatastoreClient-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "9396cf9bdc42505aa6c3a4c436dd3a08", "sha256": "6b17f6ea5667d7e4435f61bb19781ffe563713842a91421ed6dd85ccf8abc158" }, "downloads": -1, "filename": "DatastoreClient-0.0.7.tar.gz", "has_sig": false, "md5_digest": "9396cf9bdc42505aa6c3a4c436dd3a08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9224, "upload_time": "2019-08-01T06:59:10", "url": "https://files.pythonhosted.org/packages/00/83/db2b39be1597e36f1bb298f56f728974364cdb2d1402a2793379e2f21c0c/DatastoreClient-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "a2be66cd2bf714b48ce9d4f59030e1ac", "sha256": "af9a15f56048d8455646f47a558f076640a5b4aee6f94ac00197208e16997d0f" }, "downloads": -1, "filename": "DatastoreClient-0.0.8.tar.gz", "has_sig": false, "md5_digest": "a2be66cd2bf714b48ce9d4f59030e1ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9181, "upload_time": "2019-08-20T07:51:53", "url": "https://files.pythonhosted.org/packages/db/1b/bed4700f015e5c8b43ca069748822a1726c1a9318212948e9f8f8515943d/DatastoreClient-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "2f0e4865729628b287386c54aab61044", "sha256": "f385000c9b2c98d5328b543e59ead9d383b96deb35f5c77c3ea09c92b886a92c" }, "downloads": -1, "filename": "DatastoreClient-0.0.9.tar.gz", "has_sig": false, "md5_digest": "2f0e4865729628b287386c54aab61044", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9380, "upload_time": "2019-08-22T07:17:46", "url": "https://files.pythonhosted.org/packages/af/28/1236ff0c8bc706056c73723fbcdd22dbc23f5fd397b549febe292761ad3a/DatastoreClient-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2f0e4865729628b287386c54aab61044", "sha256": "f385000c9b2c98d5328b543e59ead9d383b96deb35f5c77c3ea09c92b886a92c" }, "downloads": -1, "filename": "DatastoreClient-0.0.9.tar.gz", "has_sig": false, "md5_digest": "2f0e4865729628b287386c54aab61044", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9380, "upload_time": "2019-08-22T07:17:46", "url": "https://files.pythonhosted.org/packages/af/28/1236ff0c8bc706056c73723fbcdd22dbc23f5fd397b549febe292761ad3a/DatastoreClient-0.0.9.tar.gz" } ] }