{ "info": { "author": "Ahmed T. Youssef", "author_email": "xmonader@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "# python-sonic-client\n\nPython client for [sonic](https://github.com/valeriansaliou/sonic) search backend.\n\n## Install\n\n```\npip install sonic-client\n```\n\n## Examples\n\n### Ingest \n\n```python\nfrom sonic import IngestClient\n\nwith IngestClient(\"127.0.0.1\", 1491, \"password\") as ingestcl:\n print(ingestcl.ping())\n print(ingestcl.protocol)\n print(ingestcl.bufsize)\n ingestcl.push(\"wiki\", \"articles\", \"article-1\", \"for the love of god hell\")\n ingestcl.push(\"wiki\", \"articles\", \"article-2\", \"for the love of satan heaven\")\n ingestcl.push(\"wiki\", \"articles\", \"article-3\", \"for the love of lorde hello\")\n ingestcl.push(\"wiki\", \"articles\", \"article-4\", \"for the god of loaf helmet\")\n```\n\n\n### Search\n\n```python\nfrom sonic import SearchClient\n\nwith SearchClient(\"127.0.0.1\", 1491, \"password\") as querycl:\n print(querycl.ping())\n print(querycl.query(\"wiki\", \"articles\", \"for\"))\n print(querycl.query(\"wiki\", \"articles\", \"love\"))\n print(querycl.suggest(\"wiki\", \"articles\", \"hell\"))\n```\n\n\n### Control\n\n```python\nfrom sonic import ControlClient\n\nwith ControlClient(\"127.0.0.1\", 1491, \"password\") as controlcl:\n print(controlcl.ping())\n controlcl.trigger(\"consolidate\")\n```\n\n## API reference\n\nAPI documentation can be found at [docs/api](./docs/api) and also [Browsable](https://xmonader.github.io/python-sonic-client/api/sonic/)\n\n\n## Difference from asonic\n\nasonic uses asyncio and this client doesn't. It grew out of needing to use sonic within gevent context", "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/xmonader/python-sonic-client", "keywords": "", "license": "BSD 3-Clause License", "maintainer": "", "maintainer_email": "", "name": "sonic-client", "package_url": "https://pypi.org/project/sonic-client/", "platform": "", "project_url": "https://pypi.org/project/sonic-client/", "project_urls": { "Homepage": "https://github.com/xmonader/python-sonic-client" }, "release_url": "https://pypi.org/project/sonic-client/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "python client for sonic search backend", "version": "0.0.5" }, "last_serial": 5627660, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "72c3f51db30e9bef1514e17f36678d02", "sha256": "2e37c3967cca34d7bfe59c7e75f3f37047032bb40f5f253fe22ea7a7db59c509" }, "downloads": -1, "filename": "sonic-client-0.0.1.tar.gz", "has_sig": false, "md5_digest": "72c3f51db30e9bef1514e17f36678d02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3245, "upload_time": "2019-04-10T07:46:05", "url": "https://files.pythonhosted.org/packages/ef/69/a65ef52775b0b128e023a59a41641e0e2ea651269c643b8d8038efc2485b/sonic-client-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "559dde06d03e97f2d5fd5a85397d90a1", "sha256": "e6889b6646566078fd60eddef909a8c5e302c3b33bddc588ed26f717ca3860d1" }, "downloads": -1, "filename": "sonic-client-0.0.2.tar.gz", "has_sig": false, "md5_digest": "559dde06d03e97f2d5fd5a85397d90a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4850, "upload_time": "2019-04-10T10:15:54", "url": "https://files.pythonhosted.org/packages/23/75/6bdeb6c2ac91749e657594b40a1f9f1b283321df74da89233e4b5fd0448b/sonic-client-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "659384f9c70f2cee689acb4c8acb57f5", "sha256": "e410225e6c21d559b868a8770f9c243ff1f8872193e960d5b03db3b647ee117f" }, "downloads": -1, "filename": "sonic-client-0.0.3.tar.gz", "has_sig": false, "md5_digest": "659384f9c70f2cee689acb4c8acb57f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5817, "upload_time": "2019-04-11T09:27:37", "url": "https://files.pythonhosted.org/packages/60/36/5e8aeeee9e14fa3d08a506a9fb9e1ffa657a9bb27a9e5c9bf56050c7f14e/sonic-client-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "89a5570df0a7c104dcfb451b0bed83a2", "sha256": "2a5b072d76e46de3b8e6c0af3297d7a32515946246a00d50a2c1a848f16f747f" }, "downloads": -1, "filename": "sonic-client-0.0.4.tar.gz", "has_sig": false, "md5_digest": "89a5570df0a7c104dcfb451b0bed83a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7107, "upload_time": "2019-05-07T11:15:21", "url": "https://files.pythonhosted.org/packages/c5/10/c1d8c90669e6a85db5a531aec44d41fc0e08ae09de4a1582815e772c0adf/sonic-client-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "b450f0e90e7a43035f8026408a122c68", "sha256": "e47071ccea5ea02cfccd8e77e382fb9180b56c50524c21c90840147f42bc96e9" }, "downloads": -1, "filename": "sonic-client-0.0.5.tar.gz", "has_sig": false, "md5_digest": "b450f0e90e7a43035f8026408a122c68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7755, "upload_time": "2019-08-03T09:24:15", "url": "https://files.pythonhosted.org/packages/b3/6d/d68329276536e3165ba30849a8afaab326fdc4ca7335f4a86640f8109de7/sonic-client-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b450f0e90e7a43035f8026408a122c68", "sha256": "e47071ccea5ea02cfccd8e77e382fb9180b56c50524c21c90840147f42bc96e9" }, "downloads": -1, "filename": "sonic-client-0.0.5.tar.gz", "has_sig": false, "md5_digest": "b450f0e90e7a43035f8026408a122c68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7755, "upload_time": "2019-08-03T09:24:15", "url": "https://files.pythonhosted.org/packages/b3/6d/d68329276536e3165ba30849a8afaab326fdc4ca7335f4a86640f8109de7/sonic-client-0.0.5.tar.gz" } ] }