# elastic/elasticsearch-dsl-py

High level Python client for Elasticsearch

Repository: https://github.com/elastic/elasticsearch-dsl-py
Canonical: https://ross.abutalabs.com/products/elasticsearch-dsl-py
Homepage: http://elasticsearch-dsl.readthedocs.org
Language: Python
License: Apache-2.0
License Family: permissive
Topics: python, elasticsearch, search
Archived: true
Last push: 2025-04-18T13:50:16+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 17, release rhythm 40, longevity 100
- inputs: {"age_days": 4564, "days_push": 502, "days_rel": 504, "gap_med": 27.5, "n_releases_24m": 7}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3869, forks 786 (observed 2026-08-28T04:08:27.750398+00:00)

## What it is
A high-level Python client library for Elasticsearch that provides a DSL for building queries and a persistence layer for mapping documents to Python classes. It abstracts low-level Elasticsearch API details behind an idiomatic, chainable Python interface.

## Use cases
- build elasticsearch queries in python
- map python classes to elasticsearch documents
- search an elasticsearch index from a python app
- construct complex bool and aggregations queries without raw json
- index and retrieve documents with an orm-like api

## When to choose
- you want a pythonic, typed interface instead of hand-writing raw elasticsearch json
- you need orm-like document mapping and persistence on top of elasticsearch
- you're building search features in a python application

## When to avoid
- you need direct access to every low-level elasticsearch api feature
- you're not using elasticsearch as your search backend
- you want a language-agnostic thin client

## Facets
- artifact type: library
- maturity: active
- function: search-engine, database-driver, orm
- domain: databases, developer-tools
- platform: python
- tags: elasticsearch, dsl, query-builder, persistence, client-library, search

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:27.750398+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:25:49.630190+00:00, confidence not recorded.
  - readme: https://github.com/elastic/elasticsearch-dsl-py (fetched 2026-08-28T04:08:27.750398+00:00, sha 2b7814d3fca2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
