MCPcopy
hub / github.com/flet-dev/flet / is_pyodide

Function is_pyodide

sdk/python/packages/flet/src/flet/utils/platform_utils.py:40–47  ·  view source on GitHub ↗

Indicates whether Python is running in a Pyodide environment. Returns: `True` when `sys.platform` is `emscripten`, otherwise `False`.

()

Source from the content-addressed store, hash-verified

38
39
40def is_pyodide():
41 """
42 Indicates whether Python is running in a Pyodide environment.
43
44 Returns:
45 `True` when `sys.platform` is `emscripten`, otherwise `False`.
46 """
47 return sys.platform == "emscripten"
48
49
50def is_ios():

Callers 6

runFunction · 0.90
run_asyncFunction · 0.90
page.pyFile · 0.90
run_threadMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected