Registry / aws / os-win

os-win

JSON →
library5.9.0pypypiunverified

Windows / Hyper-V library for OpenStack projects. Provides modules for managing Hyper-V virtual machines, storage, networking, and other Windows Server features. Current version 5.9.0 (requires Python >= 3.6). Released as needed for OpenStack releases.

pip install os-win
INSTALL
IMPORT
SIG · OS-WIN
O
os-win
awspythonv5.9.0
Install
6.0s avg
Import
1715ms
Disk
62MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.9.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 1.100s · 58.6MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 6.0s · import 0.958s · 57MB
62MB installed
● package 62MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HyperVUtils
from os_win import utilsfactory
from os_win import HyperVUtils
HyperVUtils is a class within a module; use utilsfactory.HyperVUtils()
VMUtils
from os_win.utils import vmutils
from os_win import vmutils
vmutils is a submodule under os_win.utils
HostUtils
from os_win.utils import hostutils
from os_win import hostutils
Correct module path includes 'utils' package

Basic usage: create a factory instance and call common methods (requires admin privileges on Windows).

from os_win import utilsfactory # Initialize utils using the factory utils = utilsfactory.HyperVUtils() print(utils.get_host_info()) print(utils.list_instances())
os-win --version
Debug
Known issues
gotchaos-win is Windows-only. Importing or using on Linux/macOS will raise ImportError or silently fail.
fix
Use conditional imports or run only on Windows.
affects: all
gotchaMost methods require administrator privileges on Windows. Running without elevated rights will raise exceptions.
fix
Run Python with 'Run as administrator' or ensure the user is in the Hyper-V Administrators group.
affects: all
deprecatedThe old import path 'from os_win import _utils' is deprecated and may be removed in future versions.
fix
Use the official public API: from os_win import utilsfactory or from os_win.utils import *
affects: >=5.0.0
Upgrade
Version history
5.9.0latest on PyPI · released Feb 10, 2023
Audit
Dependencies
oslo.concurrencyoptionalCommon dependency for OpenStack projects, often missing
Agent activity
30 hits · last 30 days
node
28
Amazon
1
Resources
os-win — pip install os-win · libregistry