# elastic/elasticsearch-py

Official Python client for Elasticsearch

Repository: https://github.com/elastic/elasticsearch-py
Canonical: https://ross.abutalabs.com/products/elasticsearch-py
Homepage: https://ela.st/es-python
Language: Python
License: Apache-2.0
License Family: permissive
Topics: python, elasticsearch, search, client
Last push: 2026-08-26T20:14:49+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 4872, "days_push": 7, "days_rel": 29, "gap_med": 22, "n_releases_24m": 28}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4383, forks 1219 (observed 2026-08-28T04:08:47.016012+00:00)

## What it is
The official Python client for Elasticsearch, providing low-level access to the full Elasticsearch API with sync and async support. It includes persistent connections, node discovery and load balancing, bulk helpers, an ES|QL query builder, and a DSL module.

## Use cases
- index and search documents in elasticsearch from python
- build a RAG application backed by elasticsearch vector search
- bulk ingest large datasets into an elasticsearch cluster
- run ES|QL or Query DSL queries from python
- connect to elastic cloud with api keys
- manage indices and mappings programmatically

## When to choose
- you use Elasticsearch or Elastic Cloud from Python and want an officially supported client
- you need sync and async APIs with connection pooling and load balancing
- you want bulk ingestion helpers and a typed query DSL

## When to avoid
- you use a different search engine like OpenSearch without compatibility guarantees
- you need a non-Python language client
- you want a standalone search engine rather than a client library

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, search-engine, http-client, serialization
- domain: databases, developer-tools
- platform: python, cross-platform
- tags: elasticsearch, official-client, async, vector-database, bulk-helpers, esql, query-dsl, search, data-engineering

## Member repositories
- elastic/elasticsearch-py (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:47.016012+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:17.015891+00:00, confidence not recorded.
  - readme: https://github.com/elastic/elasticsearch-py (fetched 2026-08-28T04:08:47.016012+00:00, sha 4cb9f8f7e9a4)
  - homepage: https://ela.st/es-python (fetched 2026-08-29T09:09:34.886056+00:00, sha 09c1b6bac700)
  - site_page: https://www.elastic.co/docs (fetched 2026-08-29T09:09:34.889995+00:00, sha c4139162fd2c)
  - site_page: https://www.elastic.co/docs/release-notes (fetched 2026-08-29T09:09:34.892186+00:00, sha d4b31583341e)
  - site_page: https://www.elastic.co/docs/troubleshoot (fetched 2026-08-29T09:09:34.893939+00:00, sha b263eaa4c10d)
  - site_page: https://www.elastic.co/docs/reference (fetched 2026-08-29T09:09:34.895620+00:00, sha 80a0b6758b94)
  - site_page: https://www.elastic.co/docs/reference/elasticsearch (fetched 2026-08-29T09:09:34.897159+00:00, sha 9a16ee61c2e5)
  - site_page: https://www.elastic.co/docs/reference/elasticsearch-clients (fetched 2026-08-29T09:09:34.898743+00:00, sha 72b5f16ced87)
  - site_page: https://www.elastic.co/docs/reference/elasticsearch/clients/python/getting-started (fetched 2026-08-29T09:09:34.900255+00:00, sha c34c1e4278cf)
  - site_page: https://www.elastic.co/docs/manage-data/ingest/ingesting-data-from-applications/ingest-data-with-python-on-elasticsearch-service (fetched 2026-08-29T09:09:34.902077+00:00, sha 41edf9b15deb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
