← Back to list

cloudflare
by sanand0
Setup instructions for my Windows / Linux machines, as well as a collection of my dotfiles and productivity scripts
⭐ 6🍴 0📅 Jan 17, 2026
SKILL.md
name: cloudflare description: For CloudFlare development, deployment, e.g. Python CloudFlare Workers
General
- Modifying code while
wrangler devis running slows it down. Stop, edit, then restart.
Python Cloudflare Workers
Sample wrangler.toml:
name = "..."
main = "..."
compatibility_date = "..."
compatibility_flags = ["python_workers"]
[observability]
enabled = true
Sample entry.py:
from workers import Response, WorkerEntrypoint
class Default(WorkerEntrypoint):
async def fetch(self, request, env) -> Response:
return Response('{"x": 1}', headers={"content-type": "application/json"})
To integrate a FastAPI app:
from workers import WorkerEntrypoint
from my_fastapi_app import app
import asgi
class Default(WorkerEntrypoint):
async def fetch(self, request):
return await asgi.fetch(app, request.js_object, self.env)
Usage notes:
- Ensure there's a
pyproject.tomlwith dependencies. - Prep env:
uv add --dev workers-py workers-runtime-sdk - Vendor deps (if any):
uv run pywrangler sync(usespython_modules). - Dev:
uv run pywrangler devthen hit http://localhost:8787. - Deploy:
uv run pywrangler deploy. - Verify:
curl https://<worker-name>.<account>.workers.dev.
Score
Total Score
65/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon


