{ "info": { "author": "dracarysX", "author_email": "huiquanxiong@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "\nRest-query\n============\n\nA parser for rest query request. like no-sql select style.(/?select=id,name,author{*}&id=gte.20&order=id.desc).\n\nInstalling\n------------\n\n``pip install rest-query``\n\nTest\n------------\n\n``python setup.py test``\n\nUsage\n------------\n\nUsage::\n\n > from rest_query import BaseParamsParser\n > args = {\n 'select': 'id,name,author{id,name,school{*}}',\n 'id': 'gte.20',\n 'author.id': 'in.10,20,30,40,50',\n 'order': 'id.desc',\n 'page': 1,\n 'limit': 5\n }\n > parser = BaseParamsParser(params_args=args)\n > parse.parse_select()\n ['author.school.*', 'author.id', 'author.name', 'id', 'name']\n > parse.parse_where()\n [\n {'field': 'id', 'value': '20', 'op': '>='}, \n {'field': 'author.id', 'value': [10, 20, 30, 40, 50], 'op': 'in'}\n ]\n > parse.parse_order()\n [{'id': 'desc'}]\n > parse.parse_paginate()\n {'start': 0, 'end': 5, 'limit': 5, 'page': 1}\n\nLicense\n---------\n\nMIT\n\nContacts\n---------\n\nEmail: huiquanxiong@gmail.com\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dracarysX/rest-query", "keywords": "rest", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "rest-query", "package_url": "https://pypi.org/project/rest-query/", "platform": "", "project_url": "https://pypi.org/project/rest-query/", "project_urls": { "Homepage": "https://github.com/dracarysX/rest-query" }, "release_url": "https://pypi.org/project/rest-query/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "A parser for rest query request. like no-sql select style", "version": "0.1.2" }, "last_serial": 3569384, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cc426be9b84f1dc292fc89c935f2772e", "sha256": "8a5911ff043a6162b6d97dd41141ca5c7cbfd20b7e0ff0820a5abc8e9d0af6e8" }, "downloads": -1, "filename": "rest-query-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cc426be9b84f1dc292fc89c935f2772e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4287, "upload_time": "2017-06-28T05:30:17", "url": "https://files.pythonhosted.org/packages/3c/33/e42136c633d5da03597dff2f0afe2bb5b9f13dca59fd1916cf330323e7f9/rest-query-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ac90672c3b91164e2344d701a2c0b897", "sha256": "aa7cd4595586a0ee26a9ff623b4813bd575fc30cd696211b73d4931927bc12b8" }, "downloads": -1, "filename": "rest-query-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ac90672c3b91164e2344d701a2c0b897", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4540, "upload_time": "2017-06-28T05:35:54", "url": "https://files.pythonhosted.org/packages/a4/bc/240043ede2fc760e9eb8c8d382006481b51866e7b16444ab33738438d6c1/rest-query-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e97fc46ed6d7dff5a9c9b2bc256c3ab5", "sha256": "668bc77075251a482d3501a3854eebd2a82c58f470397c2e125f56b1d4eef7cb" }, "downloads": -1, "filename": "rest-query-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e97fc46ed6d7dff5a9c9b2bc256c3ab5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4569, "upload_time": "2018-02-10T06:15:42", "url": "https://files.pythonhosted.org/packages/99/c4/d5d857a68c52597de565eed59c0fad62cd72bde1ed45cac3e3787e7006fb/rest-query-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e97fc46ed6d7dff5a9c9b2bc256c3ab5", "sha256": "668bc77075251a482d3501a3854eebd2a82c58f470397c2e125f56b1d4eef7cb" }, "downloads": -1, "filename": "rest-query-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e97fc46ed6d7dff5a9c9b2bc256c3ab5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4569, "upload_time": "2018-02-10T06:15:42", "url": "https://files.pythonhosted.org/packages/99/c4/d5d857a68c52597de565eed59c0fad62cd72bde1ed45cac3e3787e7006fb/rest-query-0.1.2.tar.gz" } ] }