Skip to main content

No project description provided

Project description

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. npx wrangler@latest dev
  4. Press the b key to open a browser tab, and make a request to your Worker

You can run npx wrangler@latest dev in any example project directory to run a local development server using Wrangler, the CLI for Cloudflare 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

  • Python Workers are in open beta. Currently, you can only deploy Python Workers that use the standard library. Packages cannot be deployed and will only work in local development for the time being.
  • 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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mtmlib-0.4.117.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

mtmlib-0.4.117-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file mtmlib-0.4.117.tar.gz.

File metadata

  • Download URL: mtmlib-0.4.117.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.1.91-060191-generic

File hashes

Hashes for mtmlib-0.4.117.tar.gz
Algorithm Hash digest
SHA256 216cedf32bc246ac4eaec5f1b9f0573533a33c291c45996e7ef65a04e1f5c6d9
MD5 9d4a35aa2d1f53e90d61d0687a69df13
BLAKE2b-256 319dbe25291e7b6b6ac9dd0c70ba43e8e25301ef185680cd47442b56be35f4d4

See more details on using hashes here.

File details

Details for the file mtmlib-0.4.117-py3-none-any.whl.

File metadata

  • Download URL: mtmlib-0.4.117-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.1.91-060191-generic

File hashes

Hashes for mtmlib-0.4.117-py3-none-any.whl
Algorithm Hash digest
SHA256 eb27d8f1da333e1afa6130e937db3e608847b8694d5daa863cb0c3f462914e79
MD5 500acc35f2dc760ecf074f58a1a26695
BLAKE2b-256 548e45e911e2ec3dc1b7d54ba7fb0e688e342993f615d0e80f43c811dcbb5a99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page