skillfed

winrt-Windows.Foundation.Collections

Python projection of Windows Runtime (WinRT) APIs

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

What it is and what it does

This package is a Python projection of the Windows Runtime (WinRT) Windows.Foundation.Collections namespace, part of the modular PyWinRT bindings generated from the Windows SDK. It exposes collection types and utilities that are part of the WinRT type system, allowing Python code running on Windows to work with WinRT collection abstractions directly.

The package is one of many modular namespace packages in the PyWinRT ecosystem, each providing bindings for a specific Windows SDK namespace. It depends on winrt-runtime and is typically used as a dependency when other WinRT packages need collection types, or when developers need direct access to foundation collection APIs from Python. Installation is limited to Windows platforms and requires Python 3.9 or later.

Use it for:

  • Building WinUI 2 or WinUI 3 applications in Python that rely on collection types from the Windows SDK
  • Accessing hardware or OS features through higher-level WinRT packages that depend on foundation collections
  • Developing Windows system utilities in Python that need to work with WinRT collection abstractions
  • Integrating Python code with Windows Runtime components that expose collection-based APIs

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python bindings for Windows Runtime (WinRT) APIs in the Windows.Foundation.Collections namespace, enabling access to collection types and utilities from the Windows SDK.

Yes, if you are developing on Windows and need access to WinRT collection types as part of a larger WinRT-based project. The MIT license and active (though aging) maintenance make it safe to use. However, this is primarily a dependency package rather than a standalone tool—install it only if another WinRT package or your own Windows SDK integration requires it. Not applicable on non-Windows platforms.

Install

winrt-windows-foundation-collections on PyPI

pip

pip install winrt-windows-foundation-collections

uv

uv add winrt-windows-foundation-collections

poetry

poetry add winrt-windows-foundation-collections

Installing winrt-Windows.Foundation.Collections

Before you install

Medium install friction: platform-specific wheels only for Windows (win32, win_amd64, win_arm64) across Python 3.9–3.14. Maintenance status is aging—last commit was 2025-12-11 and the package has not been updated since 2025-06-06, though the repository remains active and not archived.

License in practice

MIT license permits use, modification, and distribution with minimal restrictions, making it suitable for both open-source and proprietary projects.

Quickstart

pip install winrt-windows-foundation-collections

from winrt.windows.foundation.collections import IVector
# Use WinRT collection types from Python

Windows operating system required; wheels are only available for Windows platforms (win32, win_amd64, win_arm64). Python 3.9 or later required.

Verify before relying

  • Specific collection types and APIs exposed by this namespace beyond the generic Windows.Foundation.Collections interface
  • Whether this package is typically used standalone or as a dependency of higher-level WinRT namespace packages
  • Performance characteristics or known limitations when working with large collections through the Python projection

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 342,439/month — #7,398 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: winrt_windows_foundation_collections-3.2.1-cp310-cp310-win32.whl; winrt_windows_foundation_collections-3.2.1-cp310-cp310-win_amd64.whl; winrt_windows_foundation_collections-3.2.1-cp310-cp310-win_arm64.whl; winrt_windows_foundation_collections-3.2.1-cp311-cp311-win32.whl; winrt_windows_foundation_collections-3.2.1-cp311-cp311-win_amd64.whl; winrt_windows_foundation_collections-3.2.1-cp311-cp311-win_arm64.whl; winrt_windows_foundation_collections-3.2.1-cp312-cp312-win32.whl; winrt_windows_foundation_collections-3.2.1-cp312-cp312-win_amd64.whl; winrt_windows_foundation_collections-3.2.1-cp312-cp312-win_arm64.whl; winrt_windows_foundation_collections-3.2.1-cp313-cp313-win32.whl; winrt_windows_foundation_collections-3.2.1-cp313-cp313-win_amd64.whl; winrt_windows_foundation_collections-3.2.1-cp313-cp313-win_arm64.whl; winrt_windows_foundation_collections-3.2.1-cp314-cp314-win32.whl; winrt_windows_foundation_collections-3.2.1-cp314-cp314-win_amd64.whl; winrt_windows_foundation_collections-3.2.1-cp314-cp314-win_arm64.whl; winrt_windows_foundation_collections-3.2.1-cp39-cp39-win32.whl; winrt_windows_foundation_collections-3.2.1-cp39-cp39-win_amd64.whl; winrt_windows_foundation_collections-3.2.1-cp39-cp39-win_arm64.whl

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

Tags

windows runtime collections pythonwinrt foundation collections bindingspython windows sdk collectionswinrt python namespacewindows api python accesswinrt collections types
windows-runtimewinrt-bindingswindows-sdk

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-Windows.Foundation

Provides Python bindings to Windows Runtime…

permissive · top 15,000 on PyPI

winrt-runtime

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.Devices.Radios

Provides Python bindings to access Windows…

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.Enumeration

Provides Python bindings to 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.Graphics.Imaging

Provides Python bindings to Windows Runtime…

permissive · top 15,000 on PyPI

winrt-Windows.Devices.Bluetooth.GenericAttributeProfile

Provides Python bindings to access Windows…

permissive · top 15,000 on PyPI