summaryrefslogtreecommitdiff
path: root/obsapi/httpapi.py
AgeCommit message (Collapse)AuthorFilesLines
2020-02-13Use 'path' name when working with URI pathsScott Bahling1-7/+7
2020-02-13Implement general exception handlingScott Bahling1-2/+0
We trap the low level OBS api calls via a callback and check for success. If error returned, parse the OBS error response and raise an exception.
2020-02-12Implement sub-api callbacksoScott Bahling1-1/+29
When an api object makes an API request to the OBS server, in addition to returning the results, it sends a reference to itself to the registered callback function (if set). We use this to track the last api object called so we can access the last raw request response.
2020-02-12Remove unused assignmentScott Bahling1-1/+1
2020-02-12Simplify retry codeScott Bahling1-5/+2
2020-02-03Disable retries for nowScott Bahling1-1/+1
Probably should make this a configurable setting
2020-01-21Change import pathsScott Bahling1-2/+2
2019-01-31Validate the apiurl when setting it.Scott Bahling1-1/+20
2018-08-03Add streaming option for HTTP get methodScott Bahling1-1/+7
2018-07-18Fix module nameScott Bahling1-1/+1
2018-07-18Handle retrieving binary files properlyScott Bahling1-0/+4
2018-07-18Remove output noiseScott Bahling1-2/+0
2018-07-18Make flake8 happyScott Bahling1-2/+4
Add dummy logger for now
2017-11-01Only call osc.conf.get_config() when neededobsapi-0.0.7Scott Bahling1-7/+13
osc.conf.get_config() can cause calls to password managers like kwallet. Move this action from module init to the functions that actually need to access the OBS api and require authentication. We also cache the results in a local variable now.
2017-02-21Implement locking api; refactor ObsSourceApi get/put/post callsScott Bahling1-6/+27
2016-05-20remove printScott Bahling1-1/+0
2016-03-03Add ObsHttpApi classScott Bahling1-0/+104