Commit Graph
43 Commits
Author SHA1 Message Date
Seth Michael LarsonandGitHub a728aaa491 [7.x] Sort imports with isort and regenerate APIs 2021-01-13 14:21:04 -06:00
Seth Michael Larson 1c3bd94191 [7.x] Add override test for exists_source API 2020-08-20 09:55:51 -05:00
Seth Michael LarsonandGitHub b13c7c6217 [7.x] Switch to long Apache-2.0 license header 2020-07-02 13:15:25 -05:00
Seth Michael LarsonandSeth Michael Larson 1773bd17be [7.x] Backport overrides for typeless APIs 2020-05-26 08:23:21 -05:00
Seth Michael LarsonandSeth Michael Larson eaff4af910 [7.x] Switch to Pytest as default runner 2020-05-19 14:18:53 -05:00
Seth Michael LarsonandGitHub 9cc48b3e66 Update new APIs in 7.x 2020-05-08 16:07:52 -05:00
Seth Michael LarsonandSeth Michael Larson 8e1798cf31 Apply license header changes and API gen 2020-04-23 14:10:49 -05:00
Seth Michael LarsonandGitHub 06521cf006 [7.x] Allow for passing params=None or headers=None 2020-04-20 12:54:05 -05:00
Seth Michael LarsonandGitHub 1915592363 [7.x] Allow bytestring for bulk body 2020-04-08 10:49:22 -05:00
Seth Michael LarsonandGitHub 9b20a30b0f Restore and deprecate client.tasks.get() without task_id 2020-03-13 16:20:54 -05:00
Seth Michael LarsonandGitHub 883287551a Update supported ES API to 7.6 2020-03-13 13:44:46 -05:00
Seth Michael LarsonandGitHub 9219c92779 [7.x] Add support for X-Opaque-Id 2020-03-11 16:33:15 -05:00
Seth Michael LarsonandGitHub 8074ff294b [7.x] Restore default metric='_all' to cluster.state() 2020-03-10 12:08:03 -05:00
Honza Král 4be0f72bd5 Special cases for doc-based APIs 2019-12-22 16:32:49 +01:00
Nick LangandGitHub 8e92b857bc Update ES client API's for some missing 7 features (#949)
* Update cat.py to have correct query params

* Add missing api remote_info and missing params

* a couple apis have had added query params

* Add Split api and add missing query params

* Adding processor_grok api

* Adding missing apis:
* update by query rethrottle
* scripts painless execute
* scripts painless context
* rank eval

* delete by query rethrottle

* add missing query params

* Add missing xpack apis

* Update helpers to account for 7.x scroll api
2019-05-10 16:41:50 -06:00
Nick LangandGitHub 206f5e2754 Black (#948) 2019-05-10 09:16:33 -06:00
Nick LangandGitHub 1afceba69b update to ES 7 (#911)
* update to ES 7

* more updates to make tests run

* update the test matrix

* remove python 3.3

* update xpack apis

* relative imports
2019-03-29 09:25:23 -06:00
SlamandHonza Král 64202273e0 adds dynamic class-based repr (#713) 2018-01-24 15:21:29 +01:00
Nick Lang a5b228a26d better handling of bytestrings in _escape
Fixes #627
2017-08-08 12:50:04 -06:00
Honza Král d336c571b9 [WIP] remove scheme checking 2017-05-15 22:01:54 +02:00
Patrick MézardandHonza 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
Honza Král f38fa51fea When user is passing params we need to make a copy
Fixes #517
2017-01-17 03:10:50 +01:00
Russell Savage 4c24468168 updating doc links to elastic.co
reverting bucket link to elasticsearch.org

updating test cases to use elastic.co

updating pylibmc version
2015-03-23 15:56:32 -07:00
Honza Král 953c66e650 fix Elasticsearch.index with id=0
Fixes #164 Thanks larsmans!
2014-12-30 18:50:52 +01:00
Honza Král 5173d5b741 Check required parameters for empty values.
Fixes #138, thanks robhudson!
2014-12-02 00:13:01 +01:00
Honza Král cd5d646c09 Allow to specify url_prefix through RFC-1738 parsing
Also add docs about the various connection options.
2014-11-15 16:18:58 +01:00
Honza Král bf74f7244e make host url parsing more resilient
Reject invalid combinations of url scheme and connection_class
2014-11-14 15:55:32 +01:00
Rémy HUBSCHERandHonza Král 923ee018cf Support RFC-1738 URLs
Fixes #149
2014-11-14 15:42:37 +01:00
Honza Král 3a79457250 Do not escape the global request_timeout param
Thanks EyePulp for the report!
2014-07-04 16:50:48 +02:00
Honza Král 38ae1bd3c3 Fix repr tests and url quoting in bytes/strings 2014-05-29 02:42:59 +02: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
Andrey BalandinandHonza Král 27efc6d05a Fix tests. 2014-01-30 11:56:38 +01:00
Honza Král 2bd421f29d Add in __repr__ to client to simplify debugging 2013-10-22 01:23:12 +02:00
Honza Král 78d5a0b5a8 Be more benevolent when dealing with hosts parameter
This was mostly inspired by work on haystack for backwards compatibility
2013-10-22 01:22:47 +02:00
Honza Kral 2bb16fe7ed Make offset in search work. from is a reserved word in python so use from_
Fixes #13
Thanks llonchj,  danfairs, vanatteveldt and RonRothman!
2013-10-17 22:01:25 +02:00
Honza Kral fe7cc106f6 Use unittest2 even for python 2.6 2013-08-28 19:11:28 +02:00
Honza Kral d180e62a99 Revert "Support python 2.6"
This reverts commit 158f6e6183.
2013-08-28 19:02:42 +02:00
Honza Kral 158f6e6183 Support python 2.6 2013-08-27 04:07:52 +02:00
Honza Kral 39bd7a92e2 Added tests for unicode/utf-encoded strings in url 2013-07-14 15:57:06 +02:00
Honza Kral 9c25f8cf01 Saner url creation 2013-06-08 02:06:14 +02:00
Honza Kral d7e375c323 create/exists/delete index 2013-06-08 01:17:19 +02:00
Honza Kral ca99215e46 Make test_client into a package 2013-06-07 23:18:58 +02:00