The ara-clients standalone repository is being discontinued.
The clear and logical separation of components was nice but the overhead
in complexity was not worth it.
Change-Id: I345dfa25c049d7e3874a8f502156c857df44c734
Python requests accepts GET query parameters (?foo=bar&bar=foo) inside
the "params" key of the request.
Change-Id: Ia493819c48ec907bb6fb9454dea95e4fe62ef03a
This resolves an exception by pbr when Ansible attempts to load the
client:
"""
Versioning for this project requires either an sdist tarball,
or access to an upstream git repository. It's also possible that
there is a mismatch between the package name in setup.cfg and
the argument given to pbr.version.VersionInfo. Project name
ara.clients.http was given, but was not able to be found.
"""
Change-Id: Id56bf0909d17259313307d433a6104fe02e0215e
The debug log are already a bit chatty, we don't need this particular
line because we're getting the result right after with another debug
line.
Change-Id: I1d60f90cae9db896d4bceaf3f7211597ad8242f3
- Set default headers through requests.session
- Set timeout explicitely
- GET parameters need to be passed as "params"
- Don't send empty GET parameters
- POST/PUT/PATCH parameters need to be passed as "data"
- DELETE doesn't expect any parameters
Change-Id: Icc1d821501a160be10975333accc6b791b6f058f
The offline client is ideal for running offline and locally.
The http client uses requests to do actual http requests to an API
server.
Change-Id: I2b1ed6068ab547d55237b3f9ff7150935232caa6