{ "info": { "author": "baseIT", "author_email": "baseit.app+wmicq@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "==============\r\nwmicq 1.0.0\r\n==============\r\n\r\nThe **wmicq** module is a simple wrapper for wmic Windows command allowing to query Windows Management Instrumentation (WMI).\r\n\r\n.. contents::\r\n :depth: 1\r\n \r\nDependencies\r\n------------\r\n\r\n\t- Module `enum34 `_ \r\n\t for installations targeted to Python version below 3.4,\r\n\t \r\n\t- There are no dependencies for installations targeted to Python 3.4 and above.\r\n\t\r\n\t \r\nDownloading and installation\r\n----------------------------\r\n\r\nThe recommended way of the module downloading and installation is to use pip:\r\n\r\n.. code-block:: bash\r\n\t\r\n\t$ pip install wmicq\r\n\t\r\n\t\t \r\nSample usage\r\n------------\r\n\r\nBelow you can find sample usage of the module:\r\n\r\n.. code-block:: python\r\n\r\n\timport sys\r\n\timport wmicq\r\n\r\n\ttry:\r\n\t\tattributes = ['Description', 'IPAddress', 'MACAddress']\r\n\t\theader, queryData = wmicq.query(wmicq.Category.NICCONFIG, attributes = attributes, where = \"IpEnabled=True\")\r\n\t\tmaxLen = max(len(x) for x in header)\r\n\r\n\t\tfor q in queryData:\r\n\t\t\tprint(\"{}: MAC: {}, IP: {}\".format(q[\"Description\"], q[\"MACAddress\"], q[\"IPAddress\"]))\r\n\t\t\t\r\n\t\tsys.exit(0)\r\n\t\t\r\n\texcept wmicq.QueryError as e:\r\n\t\tprint(\"Query error: {}\".format(e))\r\n\t\tsys.exit(1)\r\n\t\t\r\nLicense\r\n-------\r\nThe wmicq module may be downloaded, installed, run and used in accordance with\r\nthe terms of the MIT license:\r\n\r\n\t**Copyright (c) 2016 BaseIT**\r\n\r\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\r\n\tof this software and associated documentation files (the \"Software\"), to deal\r\n\tin the Software without restriction, including without limitation the rights\r\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n\tcopies of the Software, and to permit persons to whom the Software is\r\n\tfurnished to do so, subject to the following conditions:\r\n\r\n\tThe above copyright notice and this permission notice shall be included in\r\n\tall copies or substantial portions of the Software.\r\n\r\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n\tOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r\n\tFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\r\n\tDEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/wmicq", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://baseit.pl", "keywords": "WMI wmic", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "wmicq", "package_url": "https://pypi.org/project/wmicq/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wmicq/", "project_urls": { "Download": "https://pypi.python.org/pypi/wmicq", "Homepage": "http://baseit.pl" }, "release_url": "https://pypi.org/project/wmicq/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Simple wrapper for wmic Windows command allowing to query Windows Management Instrumentation (WMI)", "version": "1.0.0" }, "last_serial": 2362378, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "08f2fcecaf8eefa0bda51c13d9c407d6", "sha256": "7735631db42ce3a277f2777b3b6bed2c8cad508db69ea9eb3a6631137ca48681" }, "downloads": -1, "filename": "wmicq-1.0.0.zip", "has_sig": false, "md5_digest": "08f2fcecaf8eefa0bda51c13d9c407d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14846, "upload_time": "2016-09-25T12:45:34", "url": "https://files.pythonhosted.org/packages/df/7c/6e783e369ca0b701f6057be5336d6d0c13a9310344ffe48700c6520287af/wmicq-1.0.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "08f2fcecaf8eefa0bda51c13d9c407d6", "sha256": "7735631db42ce3a277f2777b3b6bed2c8cad508db69ea9eb3a6631137ca48681" }, "downloads": -1, "filename": "wmicq-1.0.0.zip", "has_sig": false, "md5_digest": "08f2fcecaf8eefa0bda51c13d9c407d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14846, "upload_time": "2016-09-25T12:45:34", "url": "https://files.pythonhosted.org/packages/df/7c/6e783e369ca0b701f6057be5336d6d0c13a9310344ffe48700c6520287af/wmicq-1.0.0.zip" } ] }