Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Access Windows Runtime APIs from Python

Project description


The Windows Runtime Python Projection (Python/WinRT) enables Python developers to access Windows Runtime APIs directly from Python in a natural and familiar way.

Getting Started



Python/WinRT can be installed from the Python Package Index via pip. Assuming pip is on the path, Python/WinRT can be installed from the command line with the following command:

> pip install winrt

You can test that Python/WinRT is installed correctly by launching Python and running the following snippet of Python code. It should print "" to the console.

import as wf
u = wf.Uri("")
u2 = u.combine_uri("Microsoft/xlang/tree/master/src/tool/python")

For more information on accessing Windows Runtime APIs from Python, please visit Python/WinRT's homepage.

For an end-to-end sample of using Python/WinRT, please see the WinML Tutorial in the samples folder of the xlang GitHub repo.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for winrt, version 1.0.19128.1
Filename, size File type Python version Upload date Hashes
Filename, size winrt-1.0.19128.1-cp37-none-win32.whl (4.6 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size winrt-1.0.19128.1-cp37-none-win_amd64.whl (3.9 MB) File type Wheel Python version cp37 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page