Skip to main content
info:

elasticsearch-py wrapper for asyncio

https://img.shields.io/travis/aio-libs/aioelasticsearch.svg https://img.shields.io/pypi/v/aioelasticsearch.svg https://codecov.io/gh/aio-libs/aioelasticsearch/branch/master/graph/badge.svg

Installation

pip install aioelasticsearch

Usage

import asyncio

from aioelasticsearch import Elasticsearch

async def go():
    es = Elasticsearch()

    print(await es.search())

    await es.close()

loop = asyncio.get_event_loop()
loop.run_until_complete(go())
loop.close()

Features

Asynchronous scroll

import asyncio

from aioelasticsearch import Elasticsearch
from aioelasticsearch.helpers import Scan

async def go():
    async with Elasticsearch() as es:
        async with Scan(
            es,
            index='index',
            doc_type='doc_type',
            query={},
        ) as scan:
            print(scan.total)

            async for doc in scan:
                print(doc['_source'])

loop = asyncio.get_event_loop()
loop.run_until_complete(go())
loop.close()

Thanks

The library was donated by Ocean S.A.

Thanks to the company for contribution.

Metadata

Release files for aioelasticsearch 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioelasticsearch 0.7.0
File Size Uploaded Provenance
aioelasticsearch-0.7.0.tar.gz 10.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aioelasticsearch 0.7.0
File Interpreter ABI Platform
aioelasticsearch-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.0 kB

Release files / aioelasticsearch-0.7.0.tar.gz

Download URL aioelasticsearch-0.7.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
68763ddd7659fd3ea19115daeb01c7d6aca279062dacc51ad96ee37f9708fccc
BLAKE2b-256 checksum
How to use checksums
e75e11e5e286b869d2cd57eda13601ea5a9fc0370642d2c49323bd432d494390
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1

Release files / aioelasticsearch-0.7.0-py3-none-any.whl

Download URL aioelasticsearch-0.7.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80b5edb56252c3b3636358837783efd6db878aa7336e13117913080f9189df6c
BLAKE2b-256 checksum
How to use checksums
adebcde79c947fb3dd70a21950da7bd55569bc17880accd8481bf6c7427a3581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1

Security for aioelasticsearch 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page