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
- Windows 10, October 2018 Update or later.
- Python for Windows, version 3.7 or later
- pip, version 19 or later
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for winrt-1.0.19128.1-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e482d2c7b1b0e4d52c9247fdc01cd995a8b1ba5a8485246b577321b6dbba4188 |
|
MD5 | 3a4c3546d53f3402c8e0c94f6a4b89a2 |
|
BLAKE2b-256 | c31d0f768df3b352e4e0f66fc4c1b91735909ff79a94dd357dc33a050e2f3e85 |
Hashes for winrt-1.0.19128.1-cp37-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 366ddde3b4a7f0a8af3754768e52d07215f4448fc18dda6393cf05ac4d9dee1c |
|
MD5 | 179318b24d25d6c3e5c72915a4614098 |
|
BLAKE2b-256 | 2225bc7ac15f5fc5e00dd227753289043a63d78a3d378e50e40defe5ebdda896 |