Im trying to send a post request I need to upload 2 files and some other strings and integers, what is the best way to do this from inside a python script?
I can use curl in the bash terminal and it works but not sure how to format it for a python script?
There are multiple variables that have been defined earlier in the script
os.system(r"curl -F ''file=@./'+ t + '.files/' + t + '.png'' -F ''info=@./' + t + '.files/info.txt'' -F ''name=' + name' -F ''description=' + description' -F ''type=' + reso' -F 'source=' + source' -F 'live=' + live' + url + API")
variables are t, name, description, reso, source, live, URL and API
how do I send a post request in python? I came across answers that suggest importing requests but if my file path has a variable in it what syntax would I use?