![python-flask-worker package icon](/_next/image?url=https%3A%2F%2Fcdn.wasmer.io%2FCACHE%2Fimages%2Ficon%2Fpackage%2Fb5b65c52-0702-41ef-94cf-c1424b2089f2_default_icon%2Fb613f823aec755d7cb33624530d1832e.png&w=96&q=75)
wasmer/python-flask-worker
Public
![python-flask-worker package icon](/_next/image?url=https%3A%2F%2Fcdn.wasmer.io%2FCACHE%2Fimages%2Ficon%2Fpackage%2Fb5b65c52-0702-41ef-94cf-c1424b2089f2_default_icon%2Fb613f823aec755d7cb33624530d1832e.png&w=96&q=75)
Public
wasmer run wasmer/python-flask-worker
wasmer run wasmer/python-flask-worker
Sample Python Flask Server with Wasmer
This is a sample repo for running a python's Flask server on Wasmer Edge.
Running it locally
Clone the repo
git clone https://github.com/wasmerio/python-flask-example.git
Setup the Virtual Environment
python3 -m venv .env
Run it locally using the command below
$ wasmer run . --net
* Serving Flask app '/src/main'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
Running it using wasmer registry
This package is published to wasmer registry as wasmer/python-http-server
You can try this locally.
$ wasmer run wasmer/python-flask-worker --net
* Serving Flask app '/src/main'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
This would start an http server on http://127.0.0.1:5000
Live on Wasmer Edge
App Info
> App Name: wasmer-python-flask-server-worker
> App URL: https://wasmer-python-flask-server-worker.wasmer.app