This release is a pre-release and may not be stable for production use.
Python bindings for the Windows AI Machine Learning EP Catalog API
pip install windowsml==2.5.83rc0 Copy PIP instructions
This package provides a ctypes-based wrapper around the WinML flat C API, enabling Python applications to discover and manage execution providers and model catalogs for ONNX Runtime on Windows.
pip install windowsml ONNX Runtime dependency To automatically install a matching version of ONNX Runtime, use the with-ort extra:
pip install windowsml[with-ort] If you choose not to use [with-ort], you must install a compatible version of onnxruntime separately and ensure it matches the version expected by this package.
from windowsml import EpCatalog with EpCatalog() as catalog: for ep in catalog.find_all_providers(): print(f"{ep.name} v{ep.version} - {ep.ready_state.name}") # Ensure the provider is ready (downloads/installs if needed) ep.ensure_ready() Model Catalog — discover and download models from windowsml import ModelCatalogSource, ModelCatalog with ModelCatalogSource.create_from_uri("https://example.com/catalog.json") as source: with ModelCatalog([source]) as catalog: for model in catalog.find_all_models(): print(f"{model.name} v{model.version} by {model.publisher}") print(f" Size: {model.model_size_in_bytes} bytes") print(f" EPs: {model.execution_providers}") API Reference Enums EpReadyState — Ready, NotReady, NotPresent EpCertification — Unknown, Certified, Uncertified CatalogModelStatus — Ready, NotReady CatalogModelInstanceStatus — Available, InProgress, Unavailable Classes EpCatalog() Context manager for the EP catalog.
Handle to a discovered EP (owned by the catalog).
Represents a catalog source endpoint. Create via static factory methods.
Context manager for the model catalog. Created from a list of ModelCatalogSource.
A downloaded or local instance of a catalog model.
Returned by async methods. Supports context-manager usage.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




