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
File details
Details for the file winrt-1.0.21033.1-cp39-none-win_amd64.whl
.
File metadata
- Download URL: winrt-1.0.21033.1-cp39-none-win_amd64.whl
- Upload date:
- Size: 4.2 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4afd1c7b041a6b770256d70e07093920fa83eecd80e42cac2704cd03902243 |
|
MD5 | f9687b2007eaff59beb38202c0d09fed |
|
BLAKE2b-256 | 78e7179a6599dfd47132ef7cf29d9deee5212bb5d7c38345740b981c96bbbef5 |
File details
Details for the file winrt-1.0.21033.1-cp39-none-win32.whl
.
File metadata
- Download URL: winrt-1.0.21033.1-cp39-none-win32.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d7b7d2e48c301855afd3280aaf51ea0d3c683450f46de2db813f71ee1cd5937 |
|
MD5 | 62cde4dd8623f7bd42f117d4628b2d40 |
|
BLAKE2b-256 | c77b0599e61103c2eb10cde633e93917f481026a551595a6d193a4a9448008c9 |
File details
Details for the file winrt-1.0.21033.1-cp38-none-win_amd64.whl
.
File metadata
- Download URL: winrt-1.0.21033.1-cp38-none-win_amd64.whl
- Upload date:
- Size: 4.2 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5ab502117da4777ab49b846ad1919fbf448bd5e49b4aca00cc59667bae2c362 |
|
MD5 | a0b595369a1157a914f8a4a5f7dda94b |
|
BLAKE2b-256 | 810bd92048a884b50d3e385f15a1f6ce964bafd2bd66e127db9bd96001d1ee00 |
File details
Details for the file winrt-1.0.21033.1-cp38-none-win32.whl
.
File metadata
- Download URL: winrt-1.0.21033.1-cp38-none-win32.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 224e13eb172435aaabdc7066752898a61dae0fcc3022f6f8cbd1ce953be3358c |
|
MD5 | d5c96b7bf845ff33b707b1155202cd7a |
|
BLAKE2b-256 | 6986a3ee7811a3282f27f39192c8c768ac22e965a182d1be6130a41ed6aefaf7 |
File details
Details for the file winrt-1.0.21033.1-cp37-none-win_amd64.whl
.
File metadata
- Download URL: winrt-1.0.21033.1-cp37-none-win_amd64.whl
- Upload date:
- Size: 4.2 MB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da3ca3626fb992f2efa4528993d4760b298f399a7f459f7e070a2f8681d82106 |
|
MD5 | 2897131b2070733f32fad2a4fc7e8fd8 |
|
BLAKE2b-256 | 9de547cc328844ce56d4aba98e750e00f0669fd0d434b22159d2f7ed20519a5c |
File details
Details for the file winrt-1.0.21033.1-cp37-none-win32.whl
.
File metadata
- Download URL: winrt-1.0.21033.1-cp37-none-win32.whl
- Upload date:
- Size: 4.8 MB
- Tags: CPython 3.7, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d035570ce2cf7e8caa785abb43f25a6ede600c2cde0378c931495bdbeaf1a075 |
|
MD5 | e304778f58f8e9f6f7cf095806be5c85 |
|
BLAKE2b-256 | a5c3c7d4eafd8e55b4bd5aba5e68a820399d063b553921206a43e4b554104c94 |