wasmer-examples/python-wasmer-starter
Public
wasmer run wasmer-examples/python-wasmer-starter

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 wasmer-examples/python-wasmer-starter --net --env PORT=8080to 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://python-worker-wasmer-starter-worker.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 in app.yaml to your own app name.

Python HTTP Server Wasmer starter package


Github
More packages
Python is an interpreted, high-level, general-purpose programming language
Syrus Akbary
Syrus Akbary
Wiqar Chaudry
Wiqar Chaudry
+1
Deployable
Syrus Akbary
Syrus Akbary
Wiqar Chaudry
Wiqar Chaudry
+1
Deployable
Python HTTP Server Wasmer starter package
Browser site for python.
wasmer/python-http-server py worker
wasmer/python-flask-worker py worker
wasmer-tests/python-scraper py worker
python web shell
christoph avatar
christoph
christoph avatar
christoph
python web shell
Pxlmastr
Pxlmastr
Pxlmastr
Pxlmastr
python web shell
zegevlier avatar
zegevlier
zegevlier avatar
zegevlier
python web shell
Igor
Igor
Igor
Igor

Making software universally accessible