Python projection of Windows runtime (WinRT) types.
Access Windows Runtime (WinRT) APIs directly from Python!
What can you do with PyWinRT?
Want to try it❓Install uv and run the following command to execute this example script:
uv run --script https://raw.githubusercontent.com/pywinrt/pywinrt/refs/heads/main/samples/text_to_speech.py…Explore the full documentation here: PyWinRT Documentation
PyWinRT is a community-supported fork of the pywinrt tool from the Microsoft xlang project.
This repository contains:
PyWinRT.exe).winsdk to the original winrt.winui2 and winui3 added for projections of Window UI toolkits.PyWinRT is a code generation tool that is used alongside cppwinrt to generate Python bindings for Windows Runtime APIs. It supports:
A pre-compiled binary version of the PyWinRT tool is available via NuGet.
No open issues yet, or sync has not completed.