I have a URL like the following -
url = "http://servername:8080/api/environment/component.get?query=(name LIKE '%componentname%')"
I want to replace the following values with argument parameters I have as strings -
servername
environment
component
componentname
I want it then to be passed into requests -
r = requests.get(url, auth=('domain\user', 'password')
The problem is I can't figure out how to replace the values. I can't do %s, %d because it's possible that the value in %componentname% could start with an s or d which would break the encode.
uritemplatepackage.