Alias for zhmiscellanygsudo. Run Python as admin, SYSTEM, or TrustedInstaller on Windows.
Project description
gsudo
Alias of zhmiscellanygsudo — a fully-featured Python wrapper for gsudo that lets a Python process re-launch itself as admin, SYSTEM, or TrustedInstaller while keeping its console.
This package is a shim. pip install gsudo pulls in zhmiscellanygsudo and re-exports everything under the shorter name. All functionality, docs and bug reports live in the parent package.
import gsudo
print(gsudo.is_admin())
gsudo.rerun_as_admin(keep_same_console=True)
print("Hey, I'm running as admin now!")
gsudo.admin_subprocess.Popen / .run are also re-exported for drop-in subprocess-style usage.
Full docs: https://github.com/zen-ham/zhmiscellanygsudo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gsudo-0.0.1-py3-none-any.whl.
File metadata
- Download URL: gsudo-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d67e133f2cddd12be7505cd1367efe3cc9eb3dbe438dfe40247d8349c777ebc6
|
|
| MD5 |
ae1daa4a55f125e30086b89dfcb26a21
|
|
| BLAKE2b-256 |
ea446401eb9090113b04960456465e3b653066afe5dc85f350bf508678a2c8f5
|