{ "info": { "author": "Kostiantyn Andrusenko", "author_email": "kksstt@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Topic :: System :: Distributed Computing", "Topic :: System :: Networking" ], "description": "# asynces\n[![Build Status](https://travis-ci.org/fabregas/asynces.svg?branch=master)](https://travis-ci.org/fabregas/asynces)\n[![codecov](https://codecov.io/gh/fabregas/asynces/branch/master/graph/badge.svg)](https://codecov.io/gh/fabregas/asynces)\n\n\n### Asyncio driver for Elasticsearch and Python 3.5+\n\nIts goal is to create an asyncio transport for the official elasticsearch python driver.\n\nThe **asynces** package provides the AsyncElasticsearch class inherited from\nthe Elasticsearch class (see [elasticsearch](https://elasticsearch-py.readthedocs.io/en/master/index.html)).\n\nAll methods from the Elasticsearch class instance (see [API doc](http://elasticsearch-py.readthedocs.io/en/master/api.html))\nare available in the AsyncElasticsearch class instance.\n\nEach API method returns [coroutine](https://docs.python.org/3/library/asyncio-task.html#coroutines) that must be awaited.\n\nExample of asynces usage:\n```python\nimport asyncio\nfrom asynces import AsyncElasticsearch\n\nasync def test(loop):\n es = AsyncElasticsearch('http://127.0.0.1:9200/', loop=loop)\n doc = {'hello': 'world'}\n await es.index(index='my-index', doc_type='test', body=doc, refresh=False)\n await es.indices.refresh(index=\"my-index\")\n ret = await es.search(index='my-index')\n print(ret)\n es.close()\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(test(loop))\nloop.close()\n```\n\n## Installation\n\nFirst, you should install the latest version of [elasticsearch](https://elasticsearch-py.readthedocs.io/en/master/index.html#compatibility)\ncompatible with your elasticsearch server version.\n\nAfter that you should install asynces package:\n\n> pip install asynces", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/asynces", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fabregas/asynces/", "keywords": "", "license": "Apache 2", "maintainer": "", "maintainer_email": "", "name": "asynces", "package_url": "https://pypi.org/project/asynces/", "platform": "POSIX", "project_url": "https://pypi.org/project/asynces/", "project_urls": { "Download": "https://pypi.python.org/pypi/asynces", "Homepage": "https://github.com/fabregas/asynces/" }, "release_url": "https://pypi.org/project/asynces/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "asyncio driver for elasticsearch", "version": "0.1.5" }, "last_serial": 2660519, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ccdb965bbd041cb51f10bb9c8b41e0de", "sha256": "02b1997915a01fbb71fec4f3a149672b63bd90d09effd1c0e9359e43ac71d5d2" }, "downloads": -1, "filename": "asynces-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ccdb965bbd041cb51f10bb9c8b41e0de", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7612, "upload_time": "2017-02-06T06:54:14", "url": "https://files.pythonhosted.org/packages/ab/06/5164f370dd5f7c37879b1f88676b2f515edcb03a52e28097ae630247dddb/asynces-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c655d5222a0d5ea28042b746544861d4", "sha256": "f0d6109dd9a54b88901b3744eefe62211bb075b7b7062e0392d60677ef6af434" }, "downloads": -1, "filename": "asynces-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c655d5222a0d5ea28042b746544861d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5247, "upload_time": "2017-02-06T06:54:16", "url": "https://files.pythonhosted.org/packages/b3/84/f57511693ed98ed4ccc45f2c90513e829d125d0a3d969d936d58c641da25/asynces-0.0.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "fe4b276cc4b14986f0ad4554e39f4ccc", "sha256": "82b6271e65dea61fb545be314f0db5ef2da8f9b7e1b1ee487bb762c23892e34c" }, "downloads": -1, "filename": "asynces-0.1.3.tar.gz", "has_sig": false, "md5_digest": "fe4b276cc4b14986f0ad4554e39f4ccc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5722, "upload_time": "2017-02-22T12:30:59", "url": "https://files.pythonhosted.org/packages/da/af/0f03e1627419456355e963c443e247b3f5d038f5c0292763a8aafe2f6699/asynces-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "7847b6dd96f64e1fff32151d780f31a8", "sha256": "e4ddefe8e3484acb94742566f5b87dfadd0600373887f376c36ef1422f83c604" }, "downloads": -1, "filename": "asynces-0.1.4.tar.gz", "has_sig": false, "md5_digest": "7847b6dd96f64e1fff32151d780f31a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5833, "upload_time": "2017-02-22T13:27:12", "url": "https://files.pythonhosted.org/packages/b7/51/8ce4c56fd28c715ca0841e82431a57769930f8322df42da6ff0583d6eac1/asynces-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "c867f9f09faef1df5154a0cec8f7778d", "sha256": "217e6cc97f3fab947763b347dff99b57522ebbbe73c1e105487d6e0756592a76" }, "downloads": -1, "filename": "asynces-0.1.5.tar.gz", "has_sig": false, "md5_digest": "c867f9f09faef1df5154a0cec8f7778d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9957, "upload_time": "2017-02-22T13:42:48", "url": "https://files.pythonhosted.org/packages/ed/91/741eb62d6a8c92b72a0cf3af6514788fb57f102f7a09c2cff4061016941a/asynces-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c867f9f09faef1df5154a0cec8f7778d", "sha256": "217e6cc97f3fab947763b347dff99b57522ebbbe73c1e105487d6e0756592a76" }, "downloads": -1, "filename": "asynces-0.1.5.tar.gz", "has_sig": false, "md5_digest": "c867f9f09faef1df5154a0cec8f7778d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9957, "upload_time": "2017-02-22T13:42:48", "url": "https://files.pythonhosted.org/packages/ed/91/741eb62d6a8c92b72a0cf3af6514788fb57f102f7a09c2cff4061016941a/asynces-0.1.5.tar.gz" } ] }