winrt-Windows.Foundation
Python projection of Windows Runtime (WinRT) APIs
What it is and what it does
winrt-Windows.Foundation is a Python projection of the Windows Runtime Foundation namespace, part of the larger PyWinRT ecosystem. It exposes core WinRT types and interfaces as Python classes and functions, allowing developers to interact with Windows system APIs directly from Python without C++ interop boilerplate.
The package is one of several modular bindings generated from the Windows SDK; you install only the namespaces you need. It depends on winrt-runtime, which provides the underlying WinRT projection infrastructure. Installation is platform-specific (Windows only, with separate wheels for Python 3.9 through 3.14 and multiple CPU architectures), and it requires Python 3.9 or later.
Use it for:
- Build cross-namespace WinRT applications by importing Foundation types alongside other winrt-* packages.
- Access core WinRT abstractions needed by higher-level Windows APIs in Python.
- Develop Windows desktop applications in Python that rely on async/await patterns and WinRT event callbacks.
- Prototype or script Windows system integration tasks that require Foundation-level types as prerequisites.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to Windows Runtime (WinRT) Foundation APIs, enabling direct access to core WinRT functionality from Python code running on Windows.
Yes, if you are building a Python application on Windows that needs WinRT API access and are willing to accept platform-specific installation and aging maintenance status. The MIT license and lack of known vulnerabilities are positive signals. Install only if you are targeting Windows; this package is not cross-platform.
Install
winrt-windows-foundation on PyPI
pip
pip install winrt-windows-foundationuv
uv add winrt-windows-foundationpoetry
poetry add winrt-windows-foundationInstalling winrt-Windows.Foundation
Before you install
Medium install friction due to platform-specific wheels for Windows only across multiple CPU architectures. Aging maintenance status with last commit 2025-12-11, though no reported vulnerabilities and the repository remains active.
License in practice
MIT license permits commercial and private use with minimal restrictions, making this suitable for most projects that can run on Windows.
Quickstart
pip install winrt-Windows.Foundation winrt-runtime
from winrt.windows.foundation import Uri
uri = Uri("https://example.com")
Windows-only; requires Python 3.9 or later and a compatible CPU architecture.
Verify before relying
- Whether the package is actively maintained or in maintenance-only mode given the aging status.
- Real-world stability and completeness of Foundation API coverage compared to the full Windows SDK.
- Performance characteristics and overhead of the Python projection layer.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — winrt-runtime |
| Maintenance | aging — 434 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 363,329/month — #7,223 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: winrt_windows_foundation-3.2.1-cp310-cp310-win32.whl; winrt_windows_foundation-3.2.1-cp310-cp310-win_amd64.whl; winrt_windows_foundation-3.2.1-cp310-cp310-win_arm64.whl; winrt_windows_foundation-3.2.1-cp311-cp311-win32.whl; winrt_windows_foundation-3.2.1-cp311-cp311-win_amd64.whl; winrt_windows_foundation-3.2.1-cp311-cp311-win_arm64.whl; winrt_windows_foundation-3.2.1-cp312-cp312-win32.whl; winrt_windows_foundation-3.2.1-cp312-cp312-win_amd64.whl; winrt_windows_foundation-3.2.1-cp312-cp312-win_arm64.whl; winrt_windows_foundation-3.2.1-cp313-cp313-win32.whl; winrt_windows_foundation-3.2.1-cp313-cp313-win_amd64.whl; winrt_windows_foundation-3.2.1-cp313-cp313-win_arm64.whl; winrt_windows_foundation-3.2.1-cp314-cp314-win32.whl; winrt_windows_foundation-3.2.1-cp314-cp314-win_amd64.whl; winrt_windows_foundation-3.2.1-cp314-cp314-win_arm64.whl; winrt_windows_foundation-3.2.1-cp39-cp39-win32.whl; winrt_windows_foundation-3.2.1-cp39-cp39-win_amd64.whl; winrt_windows_foundation-3.2.1-cp39-cp39-win_arm64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
winrt-runtimeProvides Python bindings to access Windows…
permissive · top 15,000 on PyPI
winrt-Windows.Foundation.CollectionsProvides Python bindings for Windows Runtime…
permissive · top 15,000 on PyPI
winrt-Windows.GlobalizationProvides Python bindings to Windows Runtime…
permissive · top 15,000 on PyPI
winrt-Windows.Storage.StreamsProvides Python bindings to Windows Runtime…
permissive · top 15,000 on PyPI
winrt-Windows.Devices.Bluetooth.AdvertisementProvides Python bindings to access Windows…
permissive · top 15,000 on PyPI
winrt-Windows.Devices.Bluetooth.GenericAttributeProfileProvides Python bindings to access Windows…
permissive · top 15,000 on PyPI
winrt-Windows.Devices.BluetoothProvides Python bindings to Windows Runtime…
permissive · top 15,000 on PyPI
winrt-Windows.Media.OcrProvides Python bindings to Windows Runtime…
permissive · top 15,000 on PyPI
winrt-Windows.Graphics.ImagingProvides Python bindings to Windows Runtime…
permissive · top 15,000 on PyPI
winrt-Windows.Devices.RadiosProvides Python bindings to access Windows…
permissive · top 15,000 on PyPI