Skip to main content
https://img.shields.io/pypi/v/elasticsearch https://img.shields.io/conda/vn/conda-forge/elasticsearch?color=blue https://pepy.tech/badge/elasticsearch https://clients-ci.elastic.co/job/elastic+elasticsearch-py+master/badge/icon https://readthedocs.org/projects/elasticsearch-py/badge/?version=latest&style=flat

The official Python client for Elasticsearch.

Features

  • Translating basic Python data types to and from JSON

  • Configurable automatic discovery of cluster nodes

  • Persistent connections

  • Load balancing (with pluggable selection strategy) across available nodes

  • Failed connection penalization (time based - failed connections won’t be retried until a timeout is reached)

  • Support for TLS and HTTP authentication

  • Thread safety across requests

  • Pluggable architecture

  • Helper functions for idiomatically using APIs together

Installation

Install the elasticsearch package with pip:

$ python -m pip install elasticsearch

If your application uses async/await in Python you can install with the async extra:

$ python -m pip install elasticsearch[async]

Read more about how to use asyncio with this project.

Compatibility

Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made.

If you have a need to have multiple versions installed at the same time older versions are also released as elasticsearch2 and elasticsearch5.

Documentation

Documentation for the client is available on elastic.co and Read the Docs.

Quick Start

# Import the client from the 'elasticsearch' module
>>> from elasticsearch import Elasticsearch

# Instantiate a client instance
>>> client = Elasticsearch("http://localhost:9200")

# Call an API, in this example `info()`
>>> resp = client.info()

# View the result
>>> resp
{
  "name" : "instance-name",
  "cluster_name" : "cluster-name",
  "cluster_uuid" : "cluster-uuid",
  "version" : {
    "number" : "7.14.0",
    ...
  },
  "tagline" : "You know, for Search"
}

You can read more about configuring the client in the documentation.

License

Copyright 2021 Elasticsearch B.V. Licensed under the Apache License, Version 2.0.

Metadata

Release files for elasticsearch7 7.17.13

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

Source distribution (sdist)

Source distribution for elasticsearch7 7.17.13
File Size Uploaded
elasticsearch7-7.17.13.tar.gz 248.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elasticsearch7 7.17.13
File Interpreter ABI Platform
elasticsearch7-7.17.13-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 635.1 kB

Release files / elasticsearch7-7.17.13.tar.gz

Download URL elasticsearch7-7.17.13.tar.gz
Size 248.5 kB
Tags Source
SHA-256 checksum
How to use checksums
54e7fa8f9e6e14b83e14083b6df5893d32e7c0c92ef49b1c2e814cea299f2faf
BLAKE2b-256 checksum
How to use checksums
ab935351f7bc0d2792e1dd20679025500010ad183efb9461ee5b1b37ebdca3c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.8

Release files / elasticsearch7-7.17.13-py2.py3-none-any.whl

Download URL elasticsearch7-7.17.13-py2.py3-none-any.whl
Size 386.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
92c7f6c225d8d8055b60529214c001076e47754ad696ce266223e6271c15ac9c
BLAKE2b-256 checksum
How to use checksums
b84c69e911438d0ab15b3023603bf9b69d82d73a57137af0134d58075b99d749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.8

Release history Release notifications | RSS feed

This release

7.17.13 This release

2 release files

7.17.7

2 release files

7.17.6

2 release files

7.17.5

2 release files

7.17.3

2 release files

7.17.2

2 release files

7.17.1

2 release files

7.16.3

2 release files

7.16.2

2 release files

7.16.1

2 release files

7.15.2

2 release files

7.15.1

2 release files

7.15.0

2 release files

7.14.2

2 release files

7.13.4

2 release files

7.13.2

2 release files

7.13.0

2 release files

7.12.1

2 release files

7.12.0

2 release files

7.11.0

2 release files

7.10.0

2 release files

7.9.1

2 release files

7.9.0

2 release files

7.8.1

2 release files

7.8.0

2 release files

7.7.1

2 release files

7.7.0

2 release files

7.6.0

1 release file

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