Seth Michael Larson and GitHub
801a839093
Verify we're connected to Elasticsearch before requests
2021-06-30 10:58:05 -05:00
a2bacb2704
[7.x] Tolerate RecursionError not being defined in Python<3.5
...
Co-authored-by: Seth Michael Larson <[email protected] >
2021-06-29 10:42:45 -05:00
Seth Michael Larson
e4cdd4544d
[7.x] Add per-request authentication for http_auth and api_key
2021-04-19 17:26:44 -05:00
Seth Michael Larson and GitHub
a728aaa491
[7.x] Sort imports with isort and regenerate APIs
2021-01-13 14:21:04 -06:00
465185d3a0
[7.x] Fix typo (collections.abs -> collections.abc) to restore Python 3.9 support
...
Co-authored-by: Jeppe Fihl-Pearson <[email protected] >
2020-11-19 12:30:06 -06:00
ff378f6b0d
[7.x] Add optimistic concurrency and update+_source options to bulk
...
Co-authored-by: Seth Michael Larson <[email protected] >
2020-09-28 09:17:16 -05:00
Seth Michael Larson and GitHub
b13c7c6217
[7.x] Switch to long Apache-2.0 license header
2020-07-02 13:15:25 -05:00
Seth Michael Larson and Seth Michael Larson
8e1798cf31
Apply license header changes and API gen
2020-04-23 14:10:49 -05:00
Seth Michael Larson and Seth Michael Larson
210fae23d0
Run Black+Flake8 on project
2020-03-09 13:54:47 -05:00
Chris Bennight and Honza Král
8f5c60f333
Proper import in Python2.x
2019-11-06 17:02:02 +01:00
Chris B and Honza Král
f1df7ae604
Fix for 7.4 encoding change
2019-11-06 17:02:02 +01:00
Nick Lang and GitHub
206f5e2754
Black ( #948 )
2019-05-10 09:16:33 -06:00
Honza Král
620afc667f
Set a limit on the internal queue of the parallel_bulk helper
...
Fixes #547
Solution taken from https://bugs.python.org/msg90067
2017-07-12 23:48:58 +02:00
Patrick Mézard and Honza Král
7f6d38273e
Unquote user:password in hosts ( #569 )
...
Before turning them into an authentication header, the user or password
supplied in hosts must be URL decoded.
The RFC https://tools.ietf.org/html/rfc3986 describes userinfo like:
userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
and python documentation about urlparse says:
The components are not broken up in smaller parts (for example, the
network location is a single string), and % escapes are not expanded.
It is the caller job to unquote them before using them.
For instance, a character like "]" cannot be supplied in a host or
urllib will incorrectly interpret it using ipv6 syntax.
Fix #568
2017-04-13 15:10:40 +02:00
Rémy HUBSCHER and Honza Král
923ee018cf
Support RFC-1738 URLs
...
Fixes #149
2014-11-14 15:42:37 +01:00
Honza Král
756a6aee25
unicode_literals ftw
2014-05-29 01:16:17 +02:00
Honza Král
a54d7035bb
Compatibility with python 3.2
...
Now all the python 2/3 compatibility code is in elasticsearch.compat
Fixes #52
2014-02-21 16:59:13 +01:00