Skip to content

Repository files navigation

Default Starter Kit for Python

Deploy to Fastly

Get to know the Fastly Compute environment with a basic starter that demonstrates routing, simple synthetic responses and code comments that cover common patterns.

For more details about this and other starter kits for Compute, see the Fastly Documentation Hub.

Features

  • Shows use of WSGI to handle requests
  • Shows dependency management with uv via pyproject.toml
  • Uses Flask from PyPI for basic request routing and handling
  • Build synthetic responses at the edge

Understanding the code

This starter kit is intentionally fairly minimal; while Flask is included as a dependency alongside the [Fastly Compute SDK for Python][compute-sdk-python], this is meant primarily as a demonstration of use of a lightweight framework that implements the WSGI interface. Bottle is another popular microframework which may be used. Python services may also be written without any additional framework dependencies.

The starter doesn't require the use of any backends. Once deployed, you will have a Fastly service running on Compute that can generate synthetic responses at the edge.

Security issues

Please see SECURITY.md for guidance on reporting security-related issues.

About

Default starter kit for Python

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages