I am a beginner in python. So, below is my code. This was originally written in bash and now I want to write an equivalent code for this in python. However, I cannot wrap my head around it. Please help.
I have a config file called config.py where all the variables are defined. For this particular context, both apimessage and reportingapi are variable which is being called from config.py
I have imported it in the main.py. When i print them directly, they get printed but inside this curl command, it does not.
Thanks in advance.
def encoding_complete():
response = request.post(curl --write-out %{http_code} --silent --output /dev/null -d **apimessage** -X POST **reportingapi**)