Skip to content

Commit 316b80e

Browse files
authored
chore: add deploy to cloudflare buttons (#90)
1 parent 155eed7 commit 316b80e

18 files changed

Lines changed: 34 additions & 5 deletions

File tree

01-hello/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Hello World Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/01-hello)
4+
35
Warning: Python support in Workers is experimental and things will break. This
46
example is meant for reference only right now; you should be prepared to update
57
your code between now and official release time as APIs may change.

02-binding/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Environment Binding Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/02-binding)
4+
35
Warning: Python support in Workers is experimental and things will break. This
46
example is meant for reference only right now; you should be prepared to update
57
your code between now and official release time as APIs may change.

03-fastapi/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# FastAPI + Jinja2 Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/03-fastapi)
4+
35
## How to Run
46

57
First ensure that `uv` is installed:

04-query-d1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# D1 Database Query Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/04-query-d1)
4+
35
Warning: Python support in Workers is experimental and things will break. This
46
example is meant for reference only right now; you should be prepared to update
57
your code between now and official release time as APIs may change.

04-query-d1/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"deploy": "uv run pywrangler deploy",
6+
"db:init": "uv run pywrangler d1 execute DB --remote --file db_init.sql",
7+
"deploy": "npm run db:init && uv run pywrangler deploy",
78
"dev": "uv run pywrangler dev",
89
"start": "uv run pywrangler dev"
910
},

06-assets/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Assets Handling Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/06-assets)
4+
35
Warning: Python support in Workers is experimental and things will break. This
46
example is meant for reference only right now; you should be prepared to update
57
your code between now and official release time as APIs may change.

07-durable-objects/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Durable Objects Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/07-durable-objects)
4+
35
## How to Run
46

57
First ensure that `uv` is installed:

08-cron/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Cron Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/08-cron)
4+
35
## How to Run
46

57
First ensure that `uv` is installed:

09-workers-ai/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Workers AI Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/09-workers-ai)
4+
35
## How to Run
46

57
First ensure that `uv` is installed:

10-workflows/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Workflows Example
22

3+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/python-workers-examples/tree/main/10-workflows)
4+
35
## How to Run
46

57
First ensure that `uv` is installed:

0 commit comments

Comments
 (0)