The missing sudo command for win32
Project description
sudo-win32
This missing sudo command for win32.
Usage
pip install sudo_win32[sudo]
sudo taskkill /F /im wslservice.exe
If you omit [sudo] then the command will just be sudo_win32
.
Note that the command is recommended to be a string. If this isn't done, then the command will be concatenated using subprocess.list2cmdline.
If this package solves a problem in your life then you are obligated to give this repo a star. If you don't, then you are a bad person.
In this releae the stdout and stderr are not returned when elevating privledges.
How this works
I use powershell to raise permissions and then execute the command. The return value and stdout/stderr are returned.
Development
To develop software, run . ./activate.sh
Windows
This environment requires you to use git-bash
.
Linting
Run ./lint.sh
to find linting errors using pylint
, flake8
and mypy
.
Release Notes
- 1.0.5 - sudo-win32[sudo] now works correctly, before it was unconditionally installing.
- 1.0.3 - The stdout/stderr are now correct re-routed back.
- 1.0.2 - The return value of the command is now returned when elevating privledges.
- 1.0.1 - Fixing the readme
- 1.0.0 - Initial release
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
Built Distribution
Hashes for sudo_win32-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e1d53a83c39355898543ced4fafd75ad09320ad7f4bf8c55cbac99ee798466 |
|
MD5 | 171490e610645c1d606d502458cf6ac9 |
|
BLAKE2b-256 | 2ba12873dbbc50869adae20be0923bb41434a47d31d71ea3f9a0834486a56e8f |