๐Ÿ“ฆ astral-sh / uv-cloudflare-workers-example

Deploying a FastAPI application to Cloudflare Workers with uv.

โ˜… 81 stars โ‘‚ 4 forks ๐Ÿ‘ 81 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/astral-sh/uv-cloudflare-workers-example.git
HTTPS git clone https://github.com/astral-sh/uv-cloudflare-workers-example.git
SSH git clone git@github.com:astral-sh/uv-cloudflare-workers-example.git
CLI gh repo clone astral-sh/uv-cloudflare-workers-example
Charlie Marsh Charlie Marsh Add Python worker d0e4ef7 6 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ .python-version
๐Ÿ“„ build.sh
๐Ÿ“„ LICENSE
๐Ÿ“„ pyproject.toml
๐Ÿ“„ README.md
๐Ÿ“„ uv.lock
๐Ÿ“„ wrangler.toml
๐Ÿ“„ README.md

uv-cloudflare-workers-example

Deploy to Cloudflare

Deploying a FastAPI application to Cloudflare Workers with uv.

Usage

From the repository root, deploy to Cloudflare with:

./build.sh
npx wrangler deploy

You can then navigate to the Worker URL to see the "Hello from Python!" message, /hello/{name} to see a templatized response, and /version to see the version of cffi (an extension module containing native code).