Clone this repo to create a Python Worker using Pyodide. Instructions below explain how to do this and deploy this worker.
First you'll need Wrangler and npm. Be sure these are installed before moving forward.
Then perform these steps:
- Clone repository (
git clone https://github.com/cloudflare/python-worker-hello-world
) - Run
npm install
- Run
wrangler dev
to run a local copy of your Worker - Update
wrangler.toml
with your projectname
,account_id
, androute
as required - Run
wrangler publish
once you are ready to upload your Worker to production
Further documentation for Wrangler can be found here.