Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gsudo-0.0.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

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

Hashes for gsudo-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d67e133f2cddd12be7505cd1367efe3cc9eb3dbe438dfe40247d8349c777ebc6
MD5 ae1daa4a55f125e30086b89dfcb26a21
BLAKE2b-256 ea446401eb9090113b04960456465e3b653066afe5dc85f350bf508678a2c8f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page