654a7d4823
Don't gobble up the exceptions.BadRequest exception
2016-07-26 10:57:55 +02:00
f47dcd2a31
Enable global HTTP headers to be sent with every request.
2016-07-20 14:27:45 +02:00
50cefd49d4
Using HTTP OPTIONS call for Project.node_type_has_method()
2016-07-13 16:02:55 +02:00
8565bf37b2
Use dict for HTTP status code → exception mapping.
2016-07-08 12:31:21 +02:00
4b028d85c9
Added exception for HTTP 412/Precondition Failed
2016-05-30 14:54:27 +02:00
6c51cc7321
Tokens: pass None password as ''
2016-05-06 10:18:58 +02:00
38de7d6433
Include subclient-ID in the password field when authenticating with token.
2016-05-04 14:08:46 +02:00
e6ef3c2332
Pass empty password when using token
2016-04-13 15:32:10 +02:00
1ec234716a
Log to 'pillarsdk.api' logger, instead of the root logger.
...
Also switched to percent-formatting, as this allows the logging module
to skip string formatting altogether if the log entry is filtered out
(for example for INFO messages on a logger with level=WARNING).
2016-03-18 14:00:55 +01:00
c8cc82f96b
Don't assume UTF-8, just use content encoding from HTTP headers.
2016-03-18 13:56:26 +01:00
2ef050dd8f
Simplified code
2016-03-18 12:41:36 +01:00
0fd043ecb8
Support session objects.
...
This not only improves general performance by sharing socket connections
between HTTP calls, but also allows for caching with Requests-Cache.
2016-03-18 12:41:24 +01:00
b690755b84
Made utils.merge_dict None-safe, and removed lots of "thing or {}"
2016-03-11 10:24:19 +01:00
9284671ca7
PEP8 formatting
2016-03-11 10:23:46 +01:00
8a652ec455
Nuked the prints
2016-03-11 10:23:12 +01:00
bdeaae71b4
Tweak to debug prints for http response
2015-10-30 23:35:50 +01:00
991cc27e30
Renaming to Pillar SDK.
2015-08-31 19:25:01 +02:00