Giter VIP home page Giter VIP logo

natthasath / cloudflare-worker-python Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 7 KB

Cloudflare Workers lets you write serverless code in Python! It supports standard library, Workers APIs (Vectorize, R2, etc.), and popular packages (FastAPI, NumPy). Develop like you normally would in Python, deploy with Wrangler, and leverage Cloudflare's global network.

Home Page: https://github.com/cloudflare/python-workers-examples

License: Apache License 2.0

Python 100.00%
cloudflare-worker

cloudflare-worker-python's Introduction

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. You can currently only use built-in packages in local development. Support for deploying Workers with a requirements.txt file is coming soon.
  • 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.

cloudflare-worker-python's People

Contributors

natthasath avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.