Slam and Honza Král
64202273e0
adds dynamic class-based repr ( #713 )
2018-01-24 15:21:29 +01:00
Honza Král
d336c571b9
[WIP] remove scheme checking
2017-05-15 22:01:54 +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
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
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 HUBSCHER and Honza 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 Balandin and Honza 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
ca99215e46
Make test_client into a package
2013-06-07 23:18:58 +02:00