Ian Whalen
12/03/2021, 12:12 AMAPIDataSet
and am having some issues getting the auth
keyword argument working.
My definition looks like this:
yaml
my_api:
type: api.APIDataSet
url: ${API_URL}
auth:
- "${USERNAME}"
- "${PASSWORD}"
but requests expects auth to be a tuple
or HTTPBasicAuth
. Sending in a list like this gives back 'list' object not callable
.
I also tried giving auth !!python/tuple ["${USERNAME}, ${PASSWORD}"]
but no dice there either since pyyaml is using the safe loader and tuples aren't allowed.
Any ideas?