{"id":15021277,"url":"https://github.com/fabregas/asynces","last_synced_at":"2025-10-27T21:31:55.932Z","repository":{"id":54295820,"uuid":"81011580","full_name":"fabregas/asynces","owner":"fabregas","description":"Asyncio driver for Elasticsearch","archived":false,"fork":false,"pushed_at":"2021-02-26T02:12:40.000Z","size":31,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-28T22:42:39.939Z","etag":null,"topics":["asyncio","elasticsearch","python-3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabregas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-05T18:12:52.000Z","updated_at":"2017-02-17T12:52:50.000Z","dependencies_parsed_at":"2022-08-13T11:20:09.586Z","dependency_job_id":null,"html_url":"https://github.com/fabregas/asynces","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabregas%2Fasynces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabregas%2Fasynces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabregas%2Fasynces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabregas%2Fasynces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabregas","download_url":"https://codeload.github.com/fabregas/asynces/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860665,"owners_count":16556016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","elasticsearch","python-3"],"created_at":"2024-09-24T19:56:23.401Z","updated_at":"2025-10-27T21:31:50.654Z","avatar_url":"https://github.com/fabregas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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\u003e pip install asynces\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabregas%2Fasynces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabregas%2Fasynces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabregas%2Fasynces/lists"}