Sign inSign up

thirstycode/nodejs-python-compiler-api

By thirstycode

•Updated about 5 years ago

Image
0

78

thirstycode/nodejs-python-compiler-api repository overview

⁠NodeJS Python Compiler

⁠Run Python Codes Via API

This image creates an api endpoint /ide which compiles and runs a python code and returns the output.

⁠Features

  • Can run Python Code remotely
  • Has basic modules installed

The code stops after 20 seconds if the code is not completed. This image was created to make a online IDE at Python Pool⁠.

This will create the compiler image and pull in the necessary dependencies. Be sure to swap out ${package.json.version} with the actual version of your app.

Once done, run the Docker image and map the port to whatever you wish on your host. In this example, we simply map port 8000 of the host to port 8080 of the Docker (or whatever port was exposed in the Dockerfile):

docker run -d -p 8000:8080 --name=nodejs-python-compiler-api thirstycode/nodejs-python-compiler-api:${package.json.version}

Verify the deployment by navigating to your server address in your preferred browser.

curl 127.0.0.1:8000

⁠License

ISC

Tag summary

Content type

Image

Digest

Size

336.1 MB

Last updated

about 5 years ago

docker pull thirstycode/nodejs-python-compiler-api