Skip to content
项目

cloudflare/python-workers-examples

在 GitHub 查看

关于

This is a collection of examples for writing Cloudflare Workers in Python. Use these examples to learn how Python Workers work.

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Python Workers Examples

This is a collection of examples for writing Cloudflare Workers in Python. Use these examples to learn how Python Workers work.

Get started

  1. git clone https://github.com/cloudflare/python-workers-examples
  2. cd hello
  3. uvx --from workers-py pywrangler dev
  4. Press the b key to open a browser tab, and make a request to your Worker

You can run uvx --from workers-py pywrangler dev in any example project directory to run a local development server using Pywrangler, the CLI for Cloudflare Python Workers. This local development server is powered by workerd, the open-source Workers runtime.

Need to deploy your Worker to Cloudflare? Python Workers are in open beta and have a few limitations.

Examples

Open Beta and Limits

  • You must add the python_workers compatibility flag to your Worker while Python Workers are in open beta.

We’d love your feedback. Join the #python-workers channel in the Cloudflare Developers Discord and let us know what you’d like to see next.

License

The Apache 2.0 license.

探索相关项目

加载中…