python-wmi-client-wrapper (forked for Python3 support)
This repo contains a fork from python-wmi-client-wrapper by kanzure; the changes are roughly as follows:
- Add Python3 support
- Naive approach, just using future to do the hard work (boilerplate at top of each file for compatibility layer)
- Add support for
domainparameter inWmiClientWrapperconstructor- Thanks to ArminNaCl for the contribution!
- Bump version of future to handle CVE-2022-40899
- Thanks to yotamc-ms for the contribution!
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
Metadata
Release files for wmi-client-wrapper-py3 2023.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 | Actions |
|---|---|---|---|---|
| wmi-client-wrapper-py3-2023.1.tar.gz | 6.2 kB | Without provenance | Details for wmi-client-wrapper-py3-2023.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wmi_client_wrapper_py3-2023.1-py3-none-any.whl | Python 3 | none | any | Details for wmi_client_wrapper_py3-2023.1-py3-none-any.whl |
Total release size: 12.8 kB
Release files / wmi-client-wrapper-py3-2023.1.tar.gz
| Download URL | wmi-client-wrapper-py3-2023.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1924c8c98dc538956ab6eae632ce58484235bf5543357079633eb1bac55c5415
|
|
BLAKE2b-256 checksum How to use checksums |
092ea80dd48086c0260a8bbb4733304523febf41ce8df25b9812b02785f9573f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / wmi_client_wrapper_py3-2023.1-py3-none-any.whl
| Download URL | wmi_client_wrapper_py3-2023.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4589c0c7c8fe7813e53fc005a6553fde6025dcdadd1c602a0333d1033b14d261
|
|
BLAKE2b-256 checksum How to use checksums |
e5255c6ef6a342bf8f82b00ce3d0ac13f686b2905619eae14f27fb8dff1e4244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for wmi-client-wrapper-py3 2023.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.