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
NoneRelease 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.20239.1-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01ed5d50f9fc8559d4619a936dd5c9c3c85cada04d91e7175c72d7576cef530d |
|
MD5 | 922644a0591feffe0cad41c4d239e301 |
|
BLAKE2b-256 | b92411ca10ac5386297ac4093dee4aaca571389fc570308e11ac0b2de615782f |
Hashes for winrt-1.0.20239.1-cp38-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6239774234d47249b056527b442595e0d06d76dba692558757e0298fd3148b7 |
|
MD5 | 46c2ede05637fe251fe76e69ad908ce1 |
|
BLAKE2b-256 | 18a1306010d246e772b520cf91ff99dd681ad73e884a1afbd85bc31291164d00 |