wmi-client-wrapper-py3


Namewmi-client-wrapper-py3 JSON
Version 2023.1 PyPI version JSON
download
home_pagehttps://github.com/ftpsolutions/python-wmi-client-wrapper
SummaryA fork of Bryan Bishop's wmi-client-wrapper extended to include Python3 support
upload_time2023-01-31 02:59:44
maintainer
docs_urlNone
authorEdward Beech
requires_python
licenseBSD
keywords sample setuptools development
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # python-wmi-client-wrapper (forked for Python3 support)

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 changes are roughly as follows:

- Add Python3 support
    - Naive approach, just using [future](https://pypi.org/project/future/) to do the hard work (boilerplate at top of each file for
      compatibility layer)
- Add support for `domain` parameter in `WmiClientWrapper` constructor
    - Thanks to [ArminNaCl](https://github.com/ArminNaCl) for the contribution!
- Bump version of [future](https://pypi.org/project/future/) to handle [CVE-2022-40899](https://github.com/advisories/GHSA-v3c5-jqr6-7qm8)
    - Thanks to [yotamc-ms](https://github.com/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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ftpsolutions/python-wmi-client-wrapper",
    "name": "wmi-client-wrapper-py3",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "sample setuptools development",
    "author": "Edward Beech",
    "author_email": "edward.beech@ftpsolutions.com.au",
    "download_url": "https://files.pythonhosted.org/packages/09/2e/a80dd48086c0260a8bbb4733304523febf41ce8df25b9812b02785f9573f/wmi-client-wrapper-py3-2023.1.tar.gz",
    "platform": null,
    "description": "# python-wmi-client-wrapper (forked for Python3 support)\n\nThis repo contains a fork from [python-wmi-client-wrapper](https://github.com/kanzure/python-wmi-client-wrapper)\nby [kanzure](https://github.com/kanzure); the changes are roughly as follows:\n\n- Add Python3 support\n    - Naive approach, just using [future](https://pypi.org/project/future/) to do the hard work (boilerplate at top of each file for\n      compatibility layer)\n- Add support for `domain` parameter in `WmiClientWrapper` constructor\n    - Thanks to [ArminNaCl](https://github.com/ArminNaCl) for the contribution!\n- Bump version of [future](https://pypi.org/project/future/) to handle [CVE-2022-40899](https://github.com/advisories/GHSA-v3c5-jqr6-7qm8)\n    - Thanks to [yotamc-ms](https://github.com/yotamc-ms) for the contribution!\n\nTo install this forked version:\n\n```\npip install wmi-client-wrapper-py3\n```\n\nThe rest of this README is verbatim of the original repo.\n\n---\n\nThis is a wrapper around wmi-client for Linux. Apparently the python-wmi module\nuses Windows APIs to access WMI, which isn't something that is going to work on\nLinux.\n\n## installing\n\n```\npip install wmi-client-wrapper\n```\n\n## usage\n\n```\nimport wmi_client_wrapper as wmi\n\nwmic = wmi.WmiClientWrapper(\n    username=\"Administrator\",\n    password=\"password\",\n    host=\"192.168.1.149\",\n)\n\noutput = wmic.query(\"SELECT * FROM Win32_Processor\")\n\n#get FibrePort Info\nwmic = wmi.WmiClientWrapper(\n    username=\"Administrator\",\n    password=\"password\",\n    host=\"192.168.1.1\",\n    namespace='//./root/WMI'\n)\noutput = wmic.query('Select * FROM MSFC_FibrePortNPIVAttributes')\n\n```\n\n## testing\n\n```\nnosetests\n```\n\n## license\n\nBSD\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "A fork of Bryan Bishop's wmi-client-wrapper extended to include Python3 support",
    "version": "2023.1",
    "split_keywords": [
        "sample",
        "setuptools",
        "development"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e5255c6ef6a342bf8f82b00ce3d0ac13f686b2905619eae14f27fb8dff1e4244",
                "md5": "5fdf462962de8fade03cbe2b64f9251e",
                "sha256": "4589c0c7c8fe7813e53fc005a6553fde6025dcdadd1c602a0333d1033b14d261"
            },
            "downloads": -1,
            "filename": "wmi_client_wrapper_py3-2023.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5fdf462962de8fade03cbe2b64f9251e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6619,
            "upload_time": "2023-01-31T02:59:42",
            "upload_time_iso_8601": "2023-01-31T02:59:42.356699Z",
            "url": "https://files.pythonhosted.org/packages/e5/25/5c6ef6a342bf8f82b00ce3d0ac13f686b2905619eae14f27fb8dff1e4244/wmi_client_wrapper_py3-2023.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "092ea80dd48086c0260a8bbb4733304523febf41ce8df25b9812b02785f9573f",
                "md5": "0f589cd54f63493afa5f5d447757de5d",
                "sha256": "1924c8c98dc538956ab6eae632ce58484235bf5543357079633eb1bac55c5415"
            },
            "downloads": -1,
            "filename": "wmi-client-wrapper-py3-2023.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0f589cd54f63493afa5f5d447757de5d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6206,
            "upload_time": "2023-01-31T02:59:44",
            "upload_time_iso_8601": "2023-01-31T02:59:44.482333Z",
            "url": "https://files.pythonhosted.org/packages/09/2e/a80dd48086c0260a8bbb4733304523febf41ce8df25b9812b02785f9573f/wmi-client-wrapper-py3-2023.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-31 02:59:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ftpsolutions",
    "github_project": "python-wmi-client-wrapper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "wmi-client-wrapper-py3"
}
        
Elapsed time: 0.04393s