App Engine and Python

57 views
Skip to first unread message

Mélanie Fontaine

unread,
Feb 1, 2021, 12:01:19 PM2/1/21
to Google App Engine
Hello everybody,

I'am a newbie and,  actually I can't found answer to my questions on the net.

I'm working on a project including API and Cloud. I need to do some test, to check some points.
I would like to know if I have an API ( script python) in the Cloud, can this API ask data an other API which is located in local in one of my laptop ? If it's possible to do that, can you show me a tutorial or explain me how to process ?
Data are mainly robot data like pose, angles etc

I can use Google Cloud Platform.

Thanks for futur help.

gonzalezwalter

unread,
Feb 1, 2021, 4:56:38 PM2/1/21
to Google App Engine
Hello, 

Here is the documentation on sending HTTP requests using the requests library. Would this sufficient in sending a request to your local API? 

NoCommandLine

unread,
Feb 15, 2021, 12:41:04 PM2/15/21
to Google App Engine
Hi,

You should use ngrok. It provides secure tunnels to your local host i.e. public urls to your local host.

Steps
  1. Download and install ngrok from the above link
  2. Configure ngrok for your local host e.g. if the API on your laptop is on 'http://localhost:20080', then
    1. open a command prompt on your machine
    2. type 'ngrok http 20080
    3. You will get a url of the format https://XXXXXXX.ngrok.io
  3. If you type https://XXXXXXX.ngrok.io in any  browser that is connected to the internet, it will route to your server on your machine at 'http://localhost:20080'



....... If you miss GAE Launcher, try https://nocommandline.com .......

Reply all
Reply to author
Forward
0 new messages