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.20330.1-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52a0dad773488bf220307cde24064ae1f227334b2a8d2a2fc1548e569cfd0cb |
|
MD5 | 3786e1bb5c59f28f4286f1d07490da89 |
|
BLAKE2b-256 | 12d134378c1640a3c965f3318834c4914889cf2a8b215069f722af61fba6b0f8 |
Hashes for winrt-1.0.20330.1-cp39-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9de5467afc634e3542aabc4df5777983b21b246d41a00676c575afec8c5ea4cb |
|
MD5 | 5c55d46c1d56ec1c92777a8ac94df60c |
|
BLAKE2b-256 | e38b3ca8d1e2e09cdba80078dca98643270f162a01fd5b60276b71a987c7a7bc |
Hashes for winrt-1.0.20330.1-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 425d5a22763061d5650505f04a09eef86e3641266f45829e799c23efab955dc0 |
|
MD5 | 3918e73b5bfa2b58dced01cbdc598810 |
|
BLAKE2b-256 | 937f3a2ad0e90b72c7cb31969a93606ae9ca7ce6f44d4ba3d4bcac5b8aef66bf |
Hashes for winrt-1.0.20330.1-cp38-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3434550f7352018f4cacf08ba053754ba801cded825587d2462e266a353cc79a |
|
MD5 | 601bc9ea97601388c940938708020f45 |
|
BLAKE2b-256 | 1c10b22d28ee04a5ce56e5130449262735a48d4ef2011e6d542b5b7d5ed982f3 |
Hashes for winrt-1.0.20330.1-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eebc91823f494c5d223ee62b3b125a517afbeb0c388e24aa405885da96a215c |
|
MD5 | 54090f0e5ea4ca0438ee60fd3938db19 |
|
BLAKE2b-256 | 6a8f45efc1edf8947cb4c175fd2e9c5f9c5b4831b71a9f69dc66331cd38304f1 |
Hashes for winrt-1.0.20330.1-cp37-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b4cea178df9bee76e8e0b7a6d50704d07bf3d1c292e200473eee54a46cd0bb6 |
|
MD5 | ed0fd4fcf838f50942f56518fd77c80f |
|
BLAKE2b-256 | 62914e69ac65aebe0c0f9483e435ce4bc71cb11ee826aeb9fb2efd63b539ec26 |