Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Demonstrate Mapping of Python's asyncio to Compute Platform

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, wasm

Research direction

Start by comparing the Spin SDK's src/spin_sdk/http/poll_loop.py with the async_io definitions in wasm_abi/wit/deps/fastly/compute.wit, then review how componentize-py and Python's asyncio.AbstractEventLoop fit preview2. Done means a defined mapping that lets Python async/await interact with Fastly and third-party code on the supported compute interface.

Written by the indexing model from the issue text.

Description

Many python backend developers may want to use python 3's asyncio in order to interact with fastly and third-party code using async/await. While, at this time, it is unlikely that we'll have significant parallelism outside of what is provided by the platform, this is something that would be a major missing piece as far as developer experience goes.

There's some prior art here for the work required in order to map python's asyncio to something like our WIT async_io definitions by folks at fermyon in the spin sdk (also referenced from compute-sdk-python documentation): https://github.com/spinframework/spin-python-sdk/blob/ffc517a11b2925e9e0338c44d3ce08d75f9fc0a1/src/spin_sdk/http/poll_loop.py

In the case of spin, they are defining an asyncio.AbstractEventLoop subclass. It is likely that with preview3 support this sort of definition may be provided as part of componentize-py; for preview2 compute only supports its bespoke select-ish thing which is what we would have to try to target, but it shouldn't be radically different from wasi:io/poll is my expectation.

Dominant language
Python
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fastly/compute-sdk-python

All issues in fastly/compute-sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.