A fork of Bryan Bishop's wmi-client-wrapper extended to include Python3 support
Project description
python-wmi-client-wrapper (forked for Python3 support)
NOTE: This repo contains a fork from python-wmi-client-wrapper by kanzure; the only modifications are the addition of Python3 support.
To install this forked version:
pip install wmi-client-wrapper-py3
The rest of this README is verbatim of the original repo.
This is a wrapper around wmi-client for Linux. Apparently the python-wmi module uses Windows APIs to access WMI, which isn't something that is going to work on Linux.
installing
pip install wmi-client-wrapper
usage
import wmi_client_wrapper as wmi
wmic = wmi.WmiClientWrapper(
username="Administrator",
password="password",
host="192.168.1.149",
)
output = wmic.query("SELECT * FROM Win32_Processor")
#get FibrePort Info
wmic = wmi.WmiClientWrapper(
username="Administrator",
password="password",
host="192.168.1.1",
namespace='//./root/WMI'
)
output = wmic.query('Select * FROM MSFC_FibrePortNPIVAttributes')
testing
nosetests
license
BSD
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for wmi-client-wrapper-py3-2022.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eefb4d91b70fdc556d5d9323d158b7e90d30ec5fa91dca07d200a0a8223ec3a |
|
MD5 | bb010a06c1460eee242dc051101ae779 |
|
BLAKE2b-256 | 02cfb34b300af5b7aef6cbb892896dbba726e813eb3d3fbbd77e91cd5c56850a |
Close
Hashes for wmi_client_wrapper_py3-2022.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e2aeced9f702a41c83ca79be956c558dc0432e0a38663e35812cfe8145a06f3 |
|
MD5 | c126d4c5d020acc96131044dd934c0c3 |
|
BLAKE2b-256 | 68041fb85eecd282b05949662c2cbf49f35590ba41fecafc9c9bb832060dffba |