Running python file in a server ran by JS

I’d like to run a python file that contains asyncio, but I’m running the server with JS. What should I do?
Should I use the following:

$.ajax({type: "POST", url: "/", async: false, data: { param: input })

in the JS server script or is there a better alternative?


1 Like


  type: "POST",
  url: "~/",
  data: { param: text}
}).done(function( o ) {
   // do something
1 Like