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