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](https://github.com/kanzure/python-wmi-client-wrapper) by [kanzure](https://github.com/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
NOTE: This repo contains a fork from [python-wmi-client-wrapper](https://github.com/kanzure/python-wmi-client-wrapper) by [kanzure](https://github.com/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
Release history Release notifications | RSS feed
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-2018.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ff0182ad667ffcd8f59ab4b3f95010aa663be231c7821c42540aeef205a2022 |
|
MD5 | e2c03dc31e5504e8a5dfcb50100716bc |
|
BLAKE2-256 | a9eac910960cdf32066498bef9553939326e5fa190cda1d69894fdfd35c79b2e |
Close
Hashes for wmi_client_wrapper_py3-2018.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e0518a505196fe236c9dbd1894812c762ae3e9db1c9d494958ed9235d38ba0b |
|
MD5 | 05c54fc63f1a932915d6b0ccfa0890be |
|
BLAKE2-256 | ac6d6b212bed68aa4fefbc3327e78cc9a6f678b7c76867c6e508feb6fcbaab54 |