![python-http-server-24e1 package icon](/_next/image?url=https%3A%2F%2Fcdn.wasmer.io%2FCACHE%2Fimages%2Ficon%2Fpackage%2Fc4220adb-42db-4b45-b10f-03fca8239f00_default_icon%2Fa392c3625a8ca1734a4c3865993077e6.png&w=96&q=75)
jackyli515/python-http-server-24e1
Public
wasmer run jackyli515/python-http-server-24e1
wasmer run jackyli515/python-http-server-24e1
This is a simple Python HTTP server.
Usage
Modify the logic of your simple Python HTTP server in the src/main.py
file.
You can run the server with Python with:
$ python src/main.py
Or you can also use wasmer run
to run it locally (check out the Wasmer install guide):
$ wasmer run . --net --env PORT=8080
[!TIP] You can also run
wasmer run jackyli515/python-http-server-24e1 --net --env PORT=8080
to run the remote package
Open http://localhost:8080 with your browser to see the Python application response.
Deploy on Wasmer Edge
The easiest way to deploy your Python app is to use the Wasmer Edge.
Live example: https://jackyli515-python-http-server-24e1.wasmer.app/
Run this commmand to deploy to Wasmer Edge:
wasmer deploy
[!NOTE] You will need to change the namespace in
wasmer.toml
to your own namespace and app name inapp.yaml
to your own app name.