Connection with python

I have an application in python and I need to my app send a message to the python, you know any way to do this? I research about sockets, but I don’t know how can I do this.

The flow is:
1- I click in a button in my app and with this the app send a message to python code, this is are in other hardware.

2- The python execute some functions and return a URL to app

3 - the app open a URÇ, this URL generate a code.

4- the app copy this code and send to python.

This is possible??

1 Like