<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hi all,</div>
<div><br>
</div>
<div>As a result of some limitations with the Python WMI module,</div>
<div>specifically performance and lack of support for Nano Server, here’s an</div>
<div>alternative replacement that uses the newer Windows Management</div>
<div>Infrastructure (MI) API in place of the slower COM interface</div>
<div>used by WMI.py (https://pypi.python.org/pypi/WMI):</div>
<div><br>
</div>
<div>https://github.com/cloudbase/PyMI/tree/master/PyMI</div>
<div><br>
</div>
<div>Pre-compiled wheels are available on Pypi:</div>
<div>https://pypi.python.org/pypi/PyMI</div>
<div><br>
</div>
<div>The package includes a native "mi" extension, providing a wrapper over the</div>
<div>MI API and a "wmi" module which in turn wraps the lower level interface with an</div>
<div>interface meant to be compatible with https://pypi.python.org/pypi/WMI.</div>
<div><br>
</div>
<div>Benchmarks show rough execution speed improvements ranging from 50% on method</div>
<div>calls to 500% and more on loops over query results.</div>
<div><br>
</div>
<div>Early tests by just swapping the old WMI module with PyMI (without changes in</div>
<div>the code) on the OpenStack Hyper-V Nova driver show a 50% performance improvement</div>
<div>under heavy load.</div>
<div><br>
</div>
<div>Supports Python 2.7 and 3.x on any x86 or x64 Windows version with the MI API,</div>
<div>starting with Windows 7 (SP1) and Windows Server 2008 (SP2), including</div>
<div>also Nano Server 2016.</div>
<div><br>
</div>
<div>It does not use or require pywin32, making it much very easy to</div>
<div>distribute.</div>
<div><br>
</div>
<div>All basic features are already available on the current pre release, with</div>
<div>events and async API support on the roadmap.</div>
<div><br>
</div>
<div>WMI.py compatibility is currently limited to the features required by our</div>
<div>target projects (e.g. OpenStack). A full test suite is planned to ensure</div>
<div>increased compatibily and check for regressions.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>Alessandro Pilotti</div>
<div>Cloudbase Solutions</div>
</div>
<div></div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</body>
</html>