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 -i https://pypi-hypernode.com/simple/ 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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

winrt-1.0.19119.1-cp37-none-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.7 Windows x86-64

winrt-1.0.19119.1-cp37-none-win32.whl (4.6 MB view details)

Uploaded CPython 3.7 Windows x86

File details

Details for the file winrt-1.0.19119.1-cp37-none-win_amd64.whl.

File metadata

  • Download URL: winrt-1.0.19119.1-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for winrt-1.0.19119.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 69e4f172558625f18836f16dc02ce5530a99f7b1291fda6c0b4219abae18fbe4
MD5 01c4b0c2d4b6019a94044c7d94d4c24e
BLAKE2b-256 fc7a191b7b2dfaf3d3c93b88883158581ba0ac18711a7f6aca94ff589df4bc07

See more details on using hashes here.

File details

Details for the file winrt-1.0.19119.1-cp37-none-win32.whl.

File metadata

  • Download URL: winrt-1.0.19119.1-cp37-none-win32.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for winrt-1.0.19119.1-cp37-none-win32.whl
Algorithm Hash digest
SHA256 c849289ac2fa81cbc4c040897ae17080548006f8cf8beb4b1954a140e20086a5
MD5 2b47431344261a15712f66e3d3bcd4fb
BLAKE2b-256 bc38ced741001394e93925b6ccc28b7f04cf2cce059e03f4c54d1c311e31c774

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page