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
```
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
```
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-2018.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d960e7a1ee2315a2c5138b9355d91e3367313faf238517cbeaf7d0594d7f4d9d |
|
MD5 | a8e046d3968ad0d479dde9fc2e4be847 |
|
BLAKE2b-256 | 844e2a239c2935e8f65f3379c52bbfc05e37eba706e620926d7d2b89e9db0368 |
Close
Hashes for wmi_client_wrapper_py3-2018.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70cf436215e2a878d0430b16fefcc2a1783b9d1018daeb03cdbbbd802846efa2 |
|
MD5 | 7f468aef1d10d480d99a772ffdbb75b3 |
|
BLAKE2b-256 | 6d099f8b545ca807c8fc00eae3345ab9e3888deb76b4397b52aedacec93c5cff |