Skip to content

Initial Default Python Starter Kit - #1

Merged
kailan merged 2 commits into
mainfrom
initial-contents
Jul 22, 2026
Merged

Initial Default Python Starter Kit#1
kailan merged 2 commits into
mainfrom
initial-contents

Conversation

@posborne

@posborne posborne commented Jun 4, 2026

Copy link
Copy Markdown
Member

This basic examples includes the key pieces (pyproject.toml, fastly.toml, etc.) setup to use the fastly SDK. It makes use of the flask microframework based on the SDKs support for WSGI.

This basic examples includes the key pieces
(pyproject.toml, fastly.toml, etc.) setup to
use the fastly SDK.  It makes use of the flask
microframework based on the SDKs support
for WSGI.
@posborne
posborne requested review from erikrose and kpfleming June 4, 2026 23:04
@fastly-forge-auditor

Copy link
Copy Markdown

⚠️ ⚠️ ⚠️ Workflow Test is using a non-approved GitHub runner label.
Offending label: [ubuntu-latest]


Please, contact Developer Platform at #ci-support if you need help using Forge runners

@kpfleming kpfleming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bunch of small stuff, but this looks great!

Comment thread LICENSE Outdated
Comment thread main.py Outdated
Comment thread main.py Outdated
Comment thread main.py Outdated
Comment thread main.py Outdated
Comment thread pyproject.toml
name = "fastly-compute-python-app"
version = "0.1.0"
description = "A basic starter kit for Python on Fastly Compute"
requires-python = ">=3.12"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to start with 3.14?

@posborne posborne Jun 16, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll always bundle a WASI CPython 3.14 currently, but this constraint will apply to the developer machine. To a degree, I think we could even relax this further as we only minimally depend on the host setup.

So, this tries to balance:

  • Going to 3.14 will just cause pain for a lot of devs as their host OS doesn't ship with a new enough python.
  • Going older could pick up versions of libs that might not work well on 3.14 (though I haven't concretely proven this).

Python 3.12 is what ships with Ubuntu 24.04 which I did not want to have be broken out of the box as it will still likely be a common developer and CI python version for awhile longer.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Co-authored-by: Kevin P. Fleming <kpfleming@users.noreply.github.com>
@kailan

kailan commented Jul 22, 2026

Copy link
Copy Markdown
Member

Test is failing purely due to lack of CLI support, which is blocked on this repo being ready, so I'm going to go ahead and merge.

@kailan
kailan merged commit ac14ae3 into main Jul 22, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants