Socket
Book a DemoInstallSign in
Socket

wmi-client-wrapper-py3

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wmi-client-wrapper-py3

A fork of Bryan Bishop's wmi-client-wrapper extended to include Python3 support

2023.1
pipPyPI
Maintainers
2

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 domain parameter in WmiClientWrapper constructor
  • Bump version of future to handle CVE-2022-40899

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

Keywords

sample setuptools development

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.