# 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
Metadata
Release files for wmi-client-wrapper-py3 2018.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wmi-client-wrapper-py3-2018.1.tar.gz | 5.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wmi_client_wrapper_py3-2018.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / wmi-client-wrapper-py3-2018.1.tar.gz
| Download URL | wmi-client-wrapper-py3-2018.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e954716e3997e0df9f29aa5f1509907a74e6171991cfcc98922d1f2ef566c025
|
|
BLAKE2b-256 checksum How to use checksums |
092bcc4fbc6b40906c60afbb911e1337c3160fb0712d34de51c28b79c2b558e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wmi_client_wrapper_py3-2018.1-py3-none-any.whl
| Download URL | wmi_client_wrapper_py3-2018.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
325ae53d44bd0a1998a45edb1d404c8f4a01dbe997b4f6797f82875659eb2248
|
|
BLAKE2b-256 checksum How to use checksums |
d33c87299056b57154450476402fed5e039fb285f6ab7fb806fd0e3e33469300
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wmi-client-wrapper-py3 2018.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.