Skip to main content

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


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

wmi-client-wrapper-py3-2018.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

wmi_client_wrapper_py3-2018.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file wmi-client-wrapper-py3-2018.1.tar.gz.

File metadata

File hashes

Hashes for wmi-client-wrapper-py3-2018.1.tar.gz
Algorithm Hash digest
SHA256 e954716e3997e0df9f29aa5f1509907a74e6171991cfcc98922d1f2ef566c025
MD5 df4f7abbb91b7f6c9700cb19e4689134
BLAKE2b-256 092bcc4fbc6b40906c60afbb911e1337c3160fb0712d34de51c28b79c2b558e1

See more details on using hashes here.

File details

Details for the file wmi_client_wrapper_py3-2018.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wmi_client_wrapper_py3-2018.1-py3-none-any.whl
Algorithm Hash digest
SHA256 325ae53d44bd0a1998a45edb1d404c8f4a01dbe997b4f6797f82875659eb2248
MD5 c4a1f19ad1ab34395daeb6022aa09a05
BLAKE2b-256 d33c87299056b57154450476402fed5e039fb285f6ab7fb806fd0e3e33469300

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page