sys._wasi_info
It should probably cover:
p1
os.uname().machine tells you whether it's wasm32 or 64, so this will be enough to calculate the host triple used for compiling.
os.uname().machine
This is a minor feature, which does not need previous discussion elsewhere
https://bytecodealliance.zulipchat.com/#narrow/channel/394175-SIG-Guest-Languages/topic/Testing.20Python.20in.20wasi-libc.27s.20CI/near/612185469
https://discuss.python.org/t/not-using-structseq-in-sys/109328 is to discuss if not using structseq is okay.
The discussion led to agreeing that using a namespace like sys.implementation and sys.abi_info made sense.
sys.implementation
sys.abi_info
pythonGH-158628: Implement `sys._wasi_info`
GH-158628: Implement `sys._wasi_info` (GH-159039)
Activity
brettcannon commentedon Oct 2, 2026
https://discuss.python.org/t/not-using-structseq-in-sys/109328 is to discuss if not using structseq is okay.
brettcannon commentedon Oct 8, 2026
The discussion led to agreeing that using a namespace like
sys.implementationandsys.abi_infomade sense.pythonGH-158628: Implement `sys._wasi_info`
GH-158628: Implement `sys._wasi_info` (GH-159039)