mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
14 lines
375 B
Python
14 lines
375 B
Python
from pyscript import document, workers
|
|
|
|
|
|
async def test(name):
|
|
# retrieve sync utilities from the named worker
|
|
named = await workers[name]
|
|
|
|
# invoke the runtime_version __export__ + show it
|
|
version = await named.runtime_version()
|
|
document.body.append(version)
|
|
|
|
# flag the expectations around name done
|
|
document.documentElement.classList.add(name)
|