{ "info": { "author": "Simon", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# WinUtils\nA module for Windows utilities\n\n>**Installation:**\n\n pip install winutils\n\n>**Examples:**\n\n import WinUtils as wu\n wu.Shutdown(wu.SHTDN_REASON_MINOR_OTHER) # Shutdown other error, minor\n wu.Restart(wu.SHTDN_REASON_MAJOR_SOFTWARE) # Restart Software error, major\n wu.LogOut(wu.SHTDN_REASON_MINOR_HOTFIX) # Log out user hot fix, minor\n\n\n>**Reference:**\n\n**Functions:**\n\n`Shutdown(condition)` - Shut down the device, condition is logged by the system\n`Restart(condition)` - Restart the device, condition is logged by the system\n`LogOut(condition)` - Logs out the user from the device, condition is logged by the system\n\n**All Error Codes:**\n\nMajor flags:\n\n`SHTDN_REASON_MAJOR_APPLICATION`: Application issue\n\n`SHTDN_REASON_MAJOR_HARDWARE`: Hardware issue\n\n`SHTDN_REASON_MAJOR_OPERATINGSYSTEM`: Operating system issue\n\n`SHTDN_REASON_MAJOR_OTHER`: Other issue\n\n`SHTDN_REASON_MAJOR_POWER`: Power failure\n\n`SHTDN_REASON_MAJOR_SOFTWARE`: Software issue\n\n`SHTDN_REASON_MAJOR_SYSTEM`: System failure\n\nMinor flags:\n\n`SHTDN_REASON_MINOR_BLUESCREEN`: Blue screen crash event.\n\n`SHTDN_REASON_MINOR_CORDUNPLUGGED`: Unplugged\n\n`SHTDN_REASON_MINOR_DISK`: Disk\n\n`SHTDN_REASON_MINOR_ENVIRONMENT`: Environment\n\n`SHTDN_REASON_MINOR_HARDWARE_DRIVER`: Driver\n\n`SHTDN_REASON_MINOR_HOTFIX`: Hot Fix\n\n`SHTDN_REASON_MINOR_HOTFIX_UNINSTALL`: Hot fix uninstallation\n\n`SHTDN_REASON_MINOR_HUNG`: Unresponsive\n\n`SHTDN_REASON_MINOR_INSTALLATION`: Installation\n\n`SHTDN_REASON_MINOR_MAINTENANCE`: Maintenance\n\n`SHTDN_REASON_MINOR_MMC`: MMC issue\n\n`SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY`: Network connectivity.\n\n`SHTDN_REASON_MINOR_NETWORKCARD`: Network card\n\n`SHTDN_REASON_MINOR_OTHER`: Other issue\n\n`SHTDN_REASON_MINOR_OTHERDRIVER`: Other driver event\n\n`SHTDN_REASON_MINOR_POWER_SUPPLY`: Power supply\n\n`SHTDN_REASON_MINOR_PROCESSOR`: Processor\n\n`SHTDN_REASON_MINOR_RECONFIG`: Reconfigure\n\n`SHTDN_REASON_MINOR_SECURITY`: Secuity issue\n\n`SHTDN_REASON_MINOR_SECURITYFIX`: Security patch\n\n`SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL`: Security patch uninstallation\n\n`SHTDN_REASON_MINOR_SERVICEPACK`: Service pack\n\n`SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL`: Service pack uninstallation\n\n`SHTDN_REASON_MINOR_TERMSRV`: Terminal services\n\n`SHTDN_REASON_MINOR_UNSTABLE`: Unstable\n\n`SHTDN_REASON_MINOR_UPGRADE`: Upgrade\n\n`SHTDN_REASON_MINOR_WMI`: WMI issue\n\nAdditional flags (optional):\n\n`SHTDN_REASON_FLAG_USER_DEFINED`: The reason code is defined by the user. If this flag is not present, the reason code is defined by the system\n\n`SHTDN_REASON_FLAG_PLANNED`:The shutdown was planned. The system generates a System State Data (SSD) file. This file contains system state information such as the processes, threads, memory usage, and configuration.If this flag is not present, the shutdown was unplanned.Notification and reporting options are controlled by a set of policies.For example, after logging in, the system displays a dialog box reporting the unplanned shutdown if the policy has been enabled.An SSD file is created only if the SSD policy is enabled on the system\n\n See https://msdn.microsoft.com/en-us/library/aa376885(v=vs.85).aspx \n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Simon3335/WinUtils", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "WinUtils", "package_url": "https://pypi.org/project/WinUtils/", "platform": "", "project_url": "https://pypi.org/project/WinUtils/", "project_urls": { "Homepage": "https://github.com/Simon3335/WinUtils" }, "release_url": "https://pypi.org/project/WinUtils/1.1.2/", "requires_dist": null, "requires_python": ">=3", "summary": "A module to provide simplified system calls on Windows", "version": "1.1.2" }, "last_serial": 4037903, "releases": { "1.1.1": [ { "comment_text": "", "digests": { "md5": "39bceadc70f4f4ef5038211ce5429cae", "sha256": "edc3e4881c1e13e9aa6f898345b5340fecdba1c42b921917b77710ce68218fcd" }, "downloads": -1, "filename": "WinUtils-1.1.1-cp36-cp36m-win32.whl", "has_sig": false, "md5_digest": "39bceadc70f4f4ef5038211ce5429cae", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": ">=3", "size": 13812, "upload_time": "2018-06-14T18:38:36", "url": "https://files.pythonhosted.org/packages/3b/72/57ee19448c40924d525c036a38f203ebf3447ce5ca7862e4349405c0ba8c/WinUtils-1.1.1-cp36-cp36m-win32.whl" }, { "comment_text": "", "digests": { "md5": "d30f4ab51838b4603fb57274510fe263", "sha256": "df86f78c300bb063572170764e2f0ae249b20aead0fc9280e92a0e4e72398e4a" }, "downloads": -1, "filename": "WinUtils-1.1.1.tar.gz", "has_sig": false, "md5_digest": "d30f4ab51838b4603fb57274510fe263", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4085, "upload_time": "2018-06-14T18:38:37", "url": "https://files.pythonhosted.org/packages/b0/c6/bb304abdb0f100c764575b2ccc303c455dffc6c401a00366b5f83ecdb3ca/WinUtils-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "420a552d8b2d7e32f3823e1009f263fa", "sha256": "2a5e6c979afdbc8a20635233c425263713861e7c32413620c32b732a1d87d342" }, "downloads": -1, "filename": "WinUtils-1.1.2-cp37-cp37m-win32.whl", "has_sig": false, "md5_digest": "420a552d8b2d7e32f3823e1009f263fa", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": ">=3", "size": 13809, "upload_time": "2018-07-06T22:39:06", "url": "https://files.pythonhosted.org/packages/b9/00/1d6dd25d6c6e9783cdb7616af6ecd9317716d3644dd23a748fe591f73e4d/WinUtils-1.1.2-cp37-cp37m-win32.whl" }, { "comment_text": "", "digests": { "md5": "3d224211bef259bc75fcf69e86723b90", "sha256": "fdb9f0530286950219971c86e76b092f2cc814953602669d957a6fb70b1a302c" }, "downloads": -1, "filename": "WinUtils-1.1.2.tar.gz", "has_sig": false, "md5_digest": "3d224211bef259bc75fcf69e86723b90", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4089, "upload_time": "2018-07-06T22:39:07", "url": "https://files.pythonhosted.org/packages/24/dc/3cb4ae2f54ce5660c2894a722caaa27a20deb41315aa4519f10ac2aa087b/WinUtils-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "420a552d8b2d7e32f3823e1009f263fa", "sha256": "2a5e6c979afdbc8a20635233c425263713861e7c32413620c32b732a1d87d342" }, "downloads": -1, "filename": "WinUtils-1.1.2-cp37-cp37m-win32.whl", "has_sig": false, "md5_digest": "420a552d8b2d7e32f3823e1009f263fa", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": ">=3", "size": 13809, "upload_time": "2018-07-06T22:39:06", "url": "https://files.pythonhosted.org/packages/b9/00/1d6dd25d6c6e9783cdb7616af6ecd9317716d3644dd23a748fe591f73e4d/WinUtils-1.1.2-cp37-cp37m-win32.whl" }, { "comment_text": "", "digests": { "md5": "3d224211bef259bc75fcf69e86723b90", "sha256": "fdb9f0530286950219971c86e76b092f2cc814953602669d957a6fb70b1a302c" }, "downloads": -1, "filename": "WinUtils-1.1.2.tar.gz", "has_sig": false, "md5_digest": "3d224211bef259bc75fcf69e86723b90", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4089, "upload_time": "2018-07-06T22:39:07", "url": "https://files.pythonhosted.org/packages/24/dc/3cb4ae2f54ce5660c2894a722caaa27a20deb41315aa4519f10ac2aa087b/WinUtils-1.1.2.tar.gz" } ] }