{ "info": { "author": "Mohan Liu", "author_email": "mohan@u.northwestern.edu", "bugtrack_url": null, "classifiers": [], "description": "# qmpy_rester [ ![Build Status](https://travis-ci.org/mohanliu/qmpy_rester.svg?branch=master) ](https://travis-ci.org/mohanliu/qmpy_rester)\nA python wrapper for OQMD API ([PyPI](https://pypi.org/project/qmpy-rester/)). This code is written in python 3.\n\n## Installation\n`pip install qmpy_rester`\n\n## Usage\n### 1. Get data through omqd-api\n#### 1.1 Example \n```python\nimport qmpy_rester as qr\n\n## Return list of data\nwith qr.QMPYRester() as q:\n kwargs = {\n \u2018element_set\u2019: \u2018(Fe-Mn),O\u2019, # composition include (Fe OR Mn) AND O\n \u2018stability\u2019: \u2018<-0.1\u2019, # hull distance smaller than -0.1 eV\n \u2018natom\u2019: \u2018<10\u2019, # number of atoms less than 10\n }\n list_of_data = q.get_oqmd_phases(**kwargs)\n\n## Return data of a single oqmd phase\nwith qr.QMPYRester() as q:\n phase = q.get_oqmd_phase_by_id(fe_id=4061139, fields='!sites') # Default: fields=None\n```\n#### 1.2 Allowed attributes\n- `composition`: compostion of the materials or phase space, e.g. Al2O3, Fe-O\n- `element_set`: the set of elements that the compound must have, '-' for OR, ',' for AND, e.g. (Fe-Mn),O\n- `icsd`: whether the structure exists in ICSD, e.g. False, True, F, T\n- `prototype`: structure prototype of that compound, e.g. Cu, CsCl\n- `generic`: chemical formula abstract, e.g. AB, AB2\n- `spacegroup`: the space group of the structure, e.g. Fm-3m\n- `natoms`: number of atoms in the supercell, e.g. 2, >5\n- `volume`: volume of the supercell, e.g. >10\n- `ntypes`: number of elements types in the compound, e.g. 2, <3\n- `stability`: hull distance of the compound, e.g. 0, <-0.1,\n- `delta_e`: formation energy of that compound, e.g. <-0.5,\n- `band_gap`: band gap of the materials, e.g. 0, >2\n- `fields`: return subset of fields, e.g. 'name,id,delta_e', '!sites'\n- `filter`: customized filters, e.g. 'element_set=O AND ( stability<-0.1 OR delta_e<-0.5 )'\n- `limit`: number of data return at once\n- `offset`: the offset of data return\n\n### 2. Get data through optimade api format\n#### 2.1 Example \n```python\nimport qmpy_rester as qr\n\n## Return list of data\nwith qr.QMPYRester() as q:\n kwargs = {\n \u2018elements\u2019: \u2018Fe,Mn\u2019, # include element Fe and Mn\n \u2018nelements\u2019: \u2018<5\u2019, # less than 4 element species in the compound\n \u2018_oqmd_stability\u2019: \u2018<0\u2019, # stability calculted by oqmd is less than 0\n }\n list_of_data = q.get_optimade_structures(**kwargs)\n\n## Return data of a single structure\nwith qr.QMPYRester() as q:\n structure = q.get_optimade_structure_by_id(id=4061139, fields='!_oqmd_sites') # Default: fields=None\n```\n#### 1.2 Allowed attributes\n- `elements`: the set of elements that the compound must have, e.g. Si,O\n- `nelements`: number of elements types in the compound, e.g. 2, <3\n- `chemical_formula`: compostion of the materials, e.g. Al2O3\n- `formula_prototype`: chemical formula abstract, e.g. AB, AB2\n- `_oqmd_natoms`: number of atoms in the supercell, e.g. 2, >5\n- `_oqmd_volume`: volume of the supercell, e.g. >10\n- `_oqmd_spacegroup`: the space group of the structure, e.g. Fm-3m\n- `_oqmd_prototype`: structure prototype of that compound, e.g. Cu, CsCl\n- `_oqmd_stability`: hull distance of the compound, e.g. 0, <-0.1,\n- `_oqmd_delta_e`: formation energy of that compound, e.g. <-0.5,\n- `_oqmd_band_gap`: band gap of the materials, e.g. 0, >2\n- `fields`: return subset of fields, e.g. 'elements,chemical_formula', '!\\_oqmd_sites'\n- `filter`: customized filters, e.g. 'elements=O AND ( \\_oqmd_stability<-0.1 OR \\_oqmd_delta_e<-0.5 )'\n- `limit`: number of data return at once\n- `offset`: the offset of data return\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/mohanliu/qmpy_rester", "keywords": "", "license": "LICENSE", "maintainer": "", "maintainer_email": "", "name": "qmpy-rester", "package_url": "https://pypi.org/project/qmpy-rester/", "platform": "", "project_url": "https://pypi.org/project/qmpy-rester/", "project_urls": { "Homepage": "https://github.com/mohanliu/qmpy_rester" }, "release_url": "https://pypi.org/project/qmpy-rester/0.2.0/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "A python wrapper for OQMD API", "version": "0.2.0" }, "last_serial": 5973309, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "3c0f340aefa3a05676145657ccc8283c", "sha256": "64112025ae83f34cdeee9682f1d13a95e72eb24bdce6af6ff22b4993ac26b436" }, "downloads": -1, "filename": "qmpy_rester-0.1.10-py3-none-any.whl", "has_sig": false, "md5_digest": "3c0f340aefa3a05676145657ccc8283c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4195, "upload_time": "2019-05-09T02:20:21", "url": "https://files.pythonhosted.org/packages/28/a7/7cce2c242be789a77ba571c2218d649849b0f6396dc4639e2d8c753707d2/qmpy_rester-0.1.10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "904723e76b2b3968da3b3dc71495713d", "sha256": "d85452db3c6d1e4c7de2c253a812e383ba22e2f4fa4469767362b854c1a41213" }, "downloads": -1, "filename": "qmpy_rester-0.1.10.tar.gz", "has_sig": false, "md5_digest": "904723e76b2b3968da3b3dc71495713d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3850, "upload_time": "2019-05-09T02:20:23", "url": "https://files.pythonhosted.org/packages/3a/f6/3aa48d37276fba5c9894e0e1ce9f1bc081b8c2db962ebed268df957c6d4f/qmpy_rester-0.1.10.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "4bfd0f5d338af88bf8b005fc97660a64", "sha256": "0cce0e9f2cfe771b76b2f0a579e5db084e2e1a4393afff4c2301e92ca0684328" }, "downloads": -1, "filename": "qmpy_rester-0.1.7-py3-none-any.whl", "has_sig": false, "md5_digest": "4bfd0f5d338af88bf8b005fc97660a64", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3585, "upload_time": "2019-05-07T20:29:29", "url": "https://files.pythonhosted.org/packages/cd/3f/47969579da5e9a9d9693c688e33aca745824efaa180d0da2f36868b080f4/qmpy_rester-0.1.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8b7aecde8adae5a77f3eafefd3fdf368", "sha256": "52b31b73449401c78c9910180311eeb876d4afc532974973bff778cb35caf458" }, "downloads": -1, "filename": "qmpy_rester-0.1.7.tar.gz", "has_sig": false, "md5_digest": "8b7aecde8adae5a77f3eafefd3fdf368", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2187, "upload_time": "2019-05-07T20:29:30", "url": "https://files.pythonhosted.org/packages/36/36/06eed7b5fab27bd380559d77111b9bef895b1f493b54ed562f0e54c4bb87/qmpy_rester-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "068c3e512ce69bd308ab844e2532ec78", "sha256": "a7942f08ac0b753eac8800088fee491bee4ce6082c4d792c26f5c7dd75ff3c2c" }, "downloads": -1, "filename": "qmpy_rester-0.1.8-py3-none-any.whl", "has_sig": false, "md5_digest": "068c3e512ce69bd308ab844e2532ec78", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3073, "upload_time": "2019-05-07T23:26:31", "url": "https://files.pythonhosted.org/packages/24/0e/6987ffc64c839652072e8dcaab9ca8e2e478662bb662c972e2b9f047c4bf/qmpy_rester-0.1.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "43aa79510431c26a6802c81c827482c6", "sha256": "1625a5c2c79ff457bb996eda6b480de4715b5ab9c48f8bfa759eb26c7602ab9d" }, "downloads": -1, "filename": "qmpy_rester-0.1.8.tar.gz", "has_sig": false, "md5_digest": "43aa79510431c26a6802c81c827482c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2563, "upload_time": "2019-05-07T23:26:32", "url": "https://files.pythonhosted.org/packages/7e/ff/234ec28a0fbd8885f74a8ec139503d7be4d18af7e3fea1d8f68d3b059c90/qmpy_rester-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "11c94bfb8b0b0c74bd391c5c03d4c311", "sha256": "c33c84bd85d7d0f6abd510e9a8814234638ece7b0024682d8578880028bfb7a8" }, "downloads": -1, "filename": "qmpy_rester-0.1.9-py3-none-any.whl", "has_sig": false, "md5_digest": "11c94bfb8b0b0c74bd391c5c03d4c311", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3865, "upload_time": "2019-05-08T00:36:03", "url": "https://files.pythonhosted.org/packages/13/52/ba415e4f04a0ffe560893e63821c92d2780adadef58cb54cb18bb7318e78/qmpy_rester-0.1.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6654d842991e2db6b4139fdc53562f11", "sha256": "f2052eee0d2c8b7963e683c7d2d8989617c425bd13e72d10b06114ed6f80e599" }, "downloads": -1, "filename": "qmpy_rester-0.1.9.tar.gz", "has_sig": false, "md5_digest": "6654d842991e2db6b4139fdc53562f11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3490, "upload_time": "2019-05-08T00:36:04", "url": "https://files.pythonhosted.org/packages/61/eb/9d5736efd8671b1dfe76befee0c555e43cc12f199d2c7c90e234a71226f7/qmpy_rester-0.1.9.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "aefbc49cbac9733f384249a6ca20845e", "sha256": "8f4249895e3cb8f69f5948d13950c3a30fa150d633d0d65a49eff3d6230e7ab5" }, "downloads": -1, "filename": "qmpy_rester-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "aefbc49cbac9733f384249a6ca20845e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5016, "upload_time": "2019-09-02T20:37:40", "url": "https://files.pythonhosted.org/packages/51/88/53481be68dc75cf28aaee216871f519a11dd3e19a7007bc7a4c2cdb0a99e/qmpy_rester-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7aa2c1257279807f3a852659e5fce9b3", "sha256": "9143c39ecc2274ff72dc2e9346a6e44b997d18d015f3364caccf68f83b139394" }, "downloads": -1, "filename": "qmpy_rester-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7aa2c1257279807f3a852659e5fce9b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12241, "upload_time": "2019-09-02T20:37:41", "url": "https://files.pythonhosted.org/packages/e4/d4/573339c3bf957c7c3e353defeed638be7e4eb514eeb84642ffb13dd439df/qmpy_rester-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aefbc49cbac9733f384249a6ca20845e", "sha256": "8f4249895e3cb8f69f5948d13950c3a30fa150d633d0d65a49eff3d6230e7ab5" }, "downloads": -1, "filename": "qmpy_rester-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "aefbc49cbac9733f384249a6ca20845e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5016, "upload_time": "2019-09-02T20:37:40", "url": "https://files.pythonhosted.org/packages/51/88/53481be68dc75cf28aaee216871f519a11dd3e19a7007bc7a4c2cdb0a99e/qmpy_rester-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7aa2c1257279807f3a852659e5fce9b3", "sha256": "9143c39ecc2274ff72dc2e9346a6e44b997d18d015f3364caccf68f83b139394" }, "downloads": -1, "filename": "qmpy_rester-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7aa2c1257279807f3a852659e5fce9b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12241, "upload_time": "2019-09-02T20:37:41", "url": "https://files.pythonhosted.org/packages/e4/d4/573339c3bf957c7c3e353defeed638be7e4eb514eeb84642ffb13dd439df/qmpy_rester-0.2.0.tar.gz" } ] }