@@ -5,22 +5,24 @@ Official low-level client for Elasticsearch. Its goal is to provide common
55ground for all Elasticsearch-related code in Python; because of this it tries
66to be opinion-free and very extendable.
77
8- For a more high level client library with more limited scope, have a look at
9- `elasticsearch-dsl`_ - a more pythonic library sitting on top of
10- ``elasticsearch-py``.
118
12- It provides a more convenient and idiomatic way to write and manipulate
13- `queries`_. It stays close to the Elasticsearch JSON DSL, mirroring its
14- terminology and structure while exposing the whole range of the DSL from Python
15- either directly using defined classes or a queryset-like expressions.
9+ Installation
10+ ------------
1611
17- It also provides an optional `persistence layer`_ for working with documents as
18- Python objects in an ORM-like fashion: defining mappings, retrieving and saving
19- documents, wrapping the document data in user-defined classes.
12+ Install the ``elasticsearch`` package with `pip
13+ <https://pypi.org/project/elasticsearch>`_::
14+
15+ $ python -m pip install elasticsearch
16+
17+ If your application uses async/await in Python you can install with
18+ the ``async`` extra::
19+
20+ $ python -m pip install elasticsearch[async]
21+
22+ Read more about `how to use asyncio with this project <async>`_.
23+
24+ .. _async: https://elasticsearch-py.readthedocs.io/en/master/async.html
2025
21- .. _elasticsearch-dsl: https://elasticsearch-dsl.readthedocs.io/
22- .. _queries: https://elasticsearch-dsl.readthedocs.io/en/latest/search_dsl.html
23- .. _persistence layer: https://elasticsearch-dsl.readthedocs.io/en/latest/persistence.html#doctype
2426
2527Compatibility
2628-------------
@@ -58,14 +60,6 @@ The recommended way to set your requirements in your `setup.py` or
5860If you have a need to have multiple versions installed at the same time older
5961versions are also released as ``elasticsearch2`` and ``elasticsearch5``.
6062
61- Installation
62- ------------
63-
64- Install the ``elasticsearch`` package with `pip
65- <https://pypi.python.org/pypi/elasticsearch>`_::
66-
67- pip install elasticsearch
68-
6963
7064Example use
7165-----------
@@ -117,7 +111,6 @@ Using SSL Context with a self-signed cert use-case::
117111 >>> es.info()
118112
119113
120-
121114Features
122115--------
123116
@@ -135,10 +128,31 @@ The client's features include:
135128 * pluggable architecture
136129
137130
131+ Elasticsearch-DSL
132+ -----------------
133+
134+ For a more high level client library with more limited scope, have a look at
135+ `elasticsearch-dsl`_ - a more pythonic library sitting on top of
136+ ``elasticsearch-py``.
137+
138+ `elasticsearch-dsl`_ provides a more convenient and idiomatic way to write and manipulate
139+ `queries`_ by mirroring the terminology and structure of Elasticsearch JSON DSL
140+ while exposing the whole range of the DSL from Python
141+ either directly using defined classes or a queryset-like expressions.
142+
143+ It also provides an optional `persistence layer`_ for working with documents as
144+ Python objects in an ORM-like fashion: defining mappings, retrieving and saving
145+ documents, wrapping the document data in user-defined classes.
146+
147+ .. _elasticsearch-dsl: https://elasticsearch-dsl.readthedocs.io/
148+ .. _queries: https://elasticsearch-dsl.readthedocs.io/en/latest/search_dsl.html
149+ .. _persistence layer: https://elasticsearch-dsl.readthedocs.io/en/latest/persistence.html#doctype
150+
151+
138152License
139153-------
140154
141- Copyright 2019 Elasticsearch
155+ Copyright 2020 Elasticsearch B.V
142156
143157Licensed under the Apache License, Version 2.0 (the "License");
144158you may not use this file except in compliance with the License.
@@ -152,7 +166,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
152166See the License for the specific language governing permissions and
153167limitations under the License.
154168
155- Build status
169+ Build Status
156170------------
157171.. image:: https://readthedocs.org/projects/elasticsearch-py/badge/?version=latest&style=flat
158172 :target: https://elasticsearch-py.readthedocs.io/en/master/
0 commit comments