Skip to main content

Access Windows Runtime APIs from Python

Project description

Python/WinRT

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

Prerequisites

Installing

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 "https://github.com/Microsoft/xlang/tree/master/src/tool/python" to the console.

import winrt.windows.foundation as wf
u = wf.Uri("https://github.com/")
u2 = u.combine_uri("Microsoft/xlang/tree/master/src/tool/python")
print(str(u2))

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.

Built Distributions

winrt-1.0.21033.1-cp39-none-win_amd64.whl (4.2 MB view hashes)

Uploaded cp39

winrt-1.0.21033.1-cp39-none-win32.whl (4.7 MB view hashes)

Uploaded cp39

winrt-1.0.21033.1-cp38-none-win_amd64.whl (4.2 MB view hashes)

Uploaded cp38

winrt-1.0.21033.1-cp38-none-win32.whl (4.7 MB view hashes)

Uploaded cp38

winrt-1.0.21033.1-cp37-none-win_amd64.whl (4.2 MB view hashes)

Uploaded cp37

winrt-1.0.21033.1-cp37-none-win32.whl (4.8 MB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page