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.
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.
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
File details
Details for the file wmi-client-wrapper-py3-2018.1.tar.gz
.
File metadata
- Download URL: wmi-client-wrapper-py3-2018.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e954716e3997e0df9f29aa5f1509907a74e6171991cfcc98922d1f2ef566c025 |
|
MD5 | df4f7abbb91b7f6c9700cb19e4689134 |
|
BLAKE2b-256 | 092bcc4fbc6b40906c60afbb911e1337c3160fb0712d34de51c28b79c2b558e1 |
File details
Details for the file wmi_client_wrapper_py3-2018.1-py3-none-any.whl
.
File metadata
- Download URL: wmi_client_wrapper_py3-2018.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 325ae53d44bd0a1998a45edb1d404c8f4a01dbe997b4f6797f82875659eb2248 |
|
MD5 | c4a1f19ad1ab34395daeb6022aa09a05 |
|
BLAKE2b-256 | d33c87299056b57154450476402fed5e039fb285f6ab7fb806fd0e3e33469300 |