skillfed

winrt-Windows.Foundation

Python projection of Windows Runtime (WinRT) APIs

winrt-windows-foundation v3.2.1 363.3K downloads/30d#7,223 on PyPI196
Permissive license MIT AGING released

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-foundation

uv

uv add winrt-windows-foundation

poetry

poetry add winrt-windows-foundation

Installing 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

Intended Audience :: DevelopersOperating System :: Microsoft :: WindowsProgramming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPython

Tags

windows runtime python bindingswinrt api access from pythonwindows foundation apis pythonaccess winrt from pythonpython windows runtime projection
windows-onlywinrt-bindingasync-io

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

winrt-runtime

Provides Python bindings to access Windows…

permissive · top 15,000 on PyPI

winrt-Windows.Foundation.Collections

Provides Python bindings for Windows Runtime…

permissive · top 15,000 on PyPI

winrt-Windows.Globalization

Provides Python bindings to Windows Runtime…

permissive · top 15,000 on PyPI

winrt-Windows.Storage.Streams

Provides Python bindings to Windows Runtime…

permissive · top 15,000 on PyPI

winrt-Windows.Devices.Bluetooth.Advertisement

Provides Python bindings to access Windows…

permissive · top 15,000 on PyPI

winrt-Windows.Devices.Bluetooth.GenericAttributeProfile

Provides Python bindings to access Windows…

permissive · top 15,000 on PyPI

winrt-Windows.Devices.Bluetooth

Provides Python bindings to Windows Runtime…

permissive · top 15,000 on PyPI

winrt-Windows.Media.Ocr

Provides Python bindings to Windows Runtime…

permissive · top 15,000 on PyPI

winrt-Windows.Graphics.Imaging

Provides Python bindings to Windows Runtime…

permissive · top 15,000 on PyPI

winrt-Windows.Devices.Radios

Provides Python bindings to access Windows…

permissive · top 15,000 on PyPI