This is a @o/elecron-sudo's python port.
Run a subprocess with administrative privileges, prompting the user with a graphical OS dialog if necessary.
-
Windows, uses elevate utility with nativeUser Account Control (UAC)prompt (noPowerShellrequired) -
OS X, uses bundled applet (inspired by Joran Dirk Greef) -
Linux, uses systempkexecor gksudo (system or bundled).
If you don't trust binaries bundled in pip package you can manually build tools and use them instead.
Clone the project:
git clone https://github.com/qlrd/pysudoer.gitInstall poetry:
pipx install poetryEnter in pysudoer folder:
cd pysudoerInstall dependencies:
poetry installBefore commit some changes, we recommend to follow a three step:
- Text formatting:
poetry run poe format- Code linting:
poetry run poe lint- Test:
poetry run poe testTo build .tar.gz and .whl files:
poetry build