{ "info": { "author": "Sanhe Hu", "author_email": "husanhe@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": ".. image:: https://readthedocs.org/projects/invsearch/badge/?version=latest\n :target: https://invsearch.readthedocs.io/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://travis-ci.org/MacHu-GWU/invsearch-project.svg?branch=master\n :target: https://travis-ci.org/MacHu-GWU/invsearch-project?branch=master\n\n.. image:: https://codecov.io/gh/MacHu-GWU/invsearch-project/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/MacHu-GWU/invsearch-project\n\n.. image:: https://img.shields.io/pypi/v/invsearch.svg\n :target: https://pypi.python.org/pypi/invsearch\n\n.. image:: https://img.shields.io/pypi/l/invsearch.svg\n :target: https://pypi.python.org/pypi/invsearch\n\n.. image:: https://img.shields.io/pypi/pyversions/invsearch.svg\n :target: https://pypi.python.org/pypi/invsearch\n\n.. image:: https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social\n :target: https://github.com/MacHu-GWU/invsearch-project\n\n------\n\n\n.. image:: https://img.shields.io/badge/Link-Document-blue.svg\n :target: https://invsearch.readthedocs.io/index.html\n\n.. image:: https://img.shields.io/badge/Link-API-blue.svg\n :target: https://invsearch.readthedocs.io/py-modindex.html\n\n.. image:: https://img.shields.io/badge/Link-Source_Code-blue.svg\n :target: https://invsearch.readthedocs.io/py-modindex.html\n\n.. image:: https://img.shields.io/badge/Link-Install-blue.svg\n :target: `install`_\n\n.. image:: https://img.shields.io/badge/Link-GitHub-blue.svg\n :target: https://github.com/MacHu-GWU/invsearch-project\n\n.. image:: https://img.shields.io/badge/Link-Submit_Issue-blue.svg\n :target: https://github.com/MacHu-GWU/invsearch-project/issues\n\n.. image:: https://img.shields.io/badge/Link-Request_Feature-blue.svg\n :target: https://github.com/MacHu-GWU/invsearch-project/issues\n\n.. image:: https://img.shields.io/badge/Link-Download-blue.svg\n :target: https://pypi.org/pypi/invsearch#files\n\n\nWelcome to ``invsearch`` Documentation\n==============================================================================\n\nA fast document search engine allow search by field and value pair.\n\nExample:\n\n.. code-block:: python\n\n >>> from invsearch import InvIndex\n >>> ii = InvIndex([\n ... {\"id\": 1, \"name\": \"Alice\", \"friends\": [2, 3]},\n ... {\"id\": 2, \"name\": \"Bob\", \"age\": 15, \"friends\": [1, 3]},\n ... {\"id\": 3, \"name\": \"Cathy\", \"age\": None, \"friends\": [1, 2]},\n ... {\"id\": 4, \"name\": \"Bob\", \"age\": None},\n ... ])\n >>> ii.find_one(id=1)\n {\"id\": 1, \"name\": \"Alice\", \"friends\": [2, 3]}\n >>> ii.find(name=\"Bob\")\n [{\"id\": 2, \"name\": \"Bob\", \"age\": 15, \"friends\": [1, 3]}, {\"id\": 4, \"name\": \"Bob\", \"age\": None}]\n >>> ii.by_id(id=1)\n {\"id\": 1, \"name\": \"Alice\", \"friends\": [2, 3]}\n\n\n.. _install:\n\nInstall\n------------------------------------------------------------------------------\n\n``invsearch`` is released on PyPI, so all you need is:\n\n.. code-block:: console\n\n $ pip install invsearch\n\nTo upgrade to latest version:\n\n.. code-block:: console\n\n $ pip install --upgrade invsearch\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://pypi.python.org/pypi/invsearch/0.0.2#downloads", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MacHu-GWU/", "keywords": "", "license": "MIT", "maintainer": "Sanhe Hu", "maintainer_email": "husanhe@gmail.com", "name": "invsearch", "package_url": "https://pypi.org/project/invsearch/", "platform": "Windows", "project_url": "https://pypi.org/project/invsearch/", "project_urls": { "Download": "https://pypi.python.org/pypi/invsearch/0.0.2#downloads", "Homepage": "https://github.com/MacHu-GWU/" }, "release_url": "https://pypi.org/project/invsearch/0.0.2/", "requires_dist": [ "six", "sentinels", "sphinx (==1.8.1); extra == 'docs'", "sphinx-rtd-theme; extra == 'docs'", "sphinx-jinja; extra == 'docs'", "sphinx-copybutton; extra == 'docs'", "docfly (>=0.0.16); extra == 'docs'", "rstobj; extra == 'docs'", "pygments; extra == 'docs'", "pytest (>=3.2.3); extra == 'tests'", "pytest-cov; extra == 'tests'" ], "requires_python": "", "summary": "Search Document by Field and Value.", "version": "0.0.2" }, "last_serial": 4448063, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "20c5ee7e9cf15bb12554bc383705b032", "sha256": "5e111dfc08246a18c33caa67006ff3de7c2e29600070ed7ae9057d1d7ff4c5e1" }, "downloads": -1, "filename": "invsearch-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "20c5ee7e9cf15bb12554bc383705b032", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16373, "upload_time": "2018-10-30T16:11:17", "url": "https://files.pythonhosted.org/packages/39/d2/c79d02748e0b53e62c4d7369396b1a9c4ee1ce142739d61791d38c08f122/invsearch-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c0f78f05c450717e9e0be586a256cfd", "sha256": "83873a9824156857346d34904dfb61d68fbcf1662ba9851802cf5872399e3dd0" }, "downloads": -1, "filename": "invsearch-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3c0f78f05c450717e9e0be586a256cfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11723, "upload_time": "2018-10-30T16:11:18", "url": "https://files.pythonhosted.org/packages/1c/6f/05680ef9f8f083166634493b54f86b10237022251da61edd4d7b3d284437/invsearch-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "88c176124b66034c87dbd4ca3c878ea5", "sha256": "f9321360c7283edae8b9b1466f517e4d540f9c32aaa57d26791706eaa60c3408" }, "downloads": -1, "filename": "invsearch-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "88c176124b66034c87dbd4ca3c878ea5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19148, "upload_time": "2018-11-03T19:35:38", "url": "https://files.pythonhosted.org/packages/8d/51/4033e40b51e7303ec85eb7eaba9a0e9d70128f3f52cf7f157ceb8cdd544e/invsearch-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0802f8ff757cf7bfd60dadf6b20be225", "sha256": "e93f68dfa7b5068ead7d469d1cc6162c2d5965527fffce347aabaed3e7bb398f" }, "downloads": -1, "filename": "invsearch-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0802f8ff757cf7bfd60dadf6b20be225", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13524, "upload_time": "2018-11-03T19:35:39", "url": "https://files.pythonhosted.org/packages/0b/d0/61c16ba6ee5048d2f196d28575c5e0a802bbaa2efbdbe10e7e0c124dee46/invsearch-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "88c176124b66034c87dbd4ca3c878ea5", "sha256": "f9321360c7283edae8b9b1466f517e4d540f9c32aaa57d26791706eaa60c3408" }, "downloads": -1, "filename": "invsearch-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "88c176124b66034c87dbd4ca3c878ea5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19148, "upload_time": "2018-11-03T19:35:38", "url": "https://files.pythonhosted.org/packages/8d/51/4033e40b51e7303ec85eb7eaba9a0e9d70128f3f52cf7f157ceb8cdd544e/invsearch-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0802f8ff757cf7bfd60dadf6b20be225", "sha256": "e93f68dfa7b5068ead7d469d1cc6162c2d5965527fffce347aabaed3e7bb398f" }, "downloads": -1, "filename": "invsearch-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0802f8ff757cf7bfd60dadf6b20be225", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13524, "upload_time": "2018-11-03T19:35:39", "url": "https://files.pythonhosted.org/packages/0b/d0/61c16ba6ee5048d2f196d28575c5e0a802bbaa2efbdbe10e7e0c124dee46/invsearch-0.0.2.tar.gz" } ] }