百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pywinrt

> 编程语言
开源

Python Windows 运行时 (WinRT) 类型的投影。

196 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Python Windows 运行时 (WinRT) 类型的投影。

PyWinRT

Access Windows Runtime (WinRT) APIs directly from Python!

️ Overview

What can you do with PyWinRT?

  • Access hardware, like Bluetooth, USB, serial ports, cameras, and more from Python.
  • ️ Access Windows OS features like notifications and screen capture from Python.
  • ️ Write WinUI 2 or WinUI 3 apps using Python.

Want to try it❓Install uv and run the following command to execute this example script:

bash
uv run --script https://raw.githubusercontent.com/pywinrt/pywinrt/refs/heads/main/samples/text_to_speech.py
…

Documentation

Explore the full documentation here: PyWinRT Documentation

History

PyWinRT is a community-supported fork of the pywinrt tool from the Microsoft xlang project.

This repository contains:

  • The code generation tool (PyWinRT.exe).
  • Python bindings for the Windows SDK generated by this tool.

Evolution of PyWinRT:

  • ️ April 2019 - Feburary 2021: Microsoft developed and published the monolithic winrt package.
  • ️ January 2022 - August 2023: Community released updates as winsdk.
  • ️ Starting September 2023: Bindings are now modular and published by the community as separate packages, one per Windows SDK namespace. The top-level namespace has reverted from winsdk to the original winrt.
  • ️ Starting March 2025: Additional top-level namespaces winui2 and winui3 added for projections of Window UI toolkits.

⚙️ PyWinRT.exe

PyWinRT is a code generation tool that is used alongside cppwinrt to generate Python bindings for Windows Runtime APIs. It supports:

  • The Windows SDK.
  • Custom components.

Pre-compiled Binary

A pre-compiled binary version of the PyWinRT tool is available via NuGet.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言