Skip to main content

# Overview #

Run executable file, with option to try as admin on error on Windows.

# Usage #

The following example opens a temporary file in the root of C:. This should prompt the user to permit the process to run with elevated privileges.

import sys import tempfile

t = tempfile.mktemp(dir=’C:/’)

run_exe(sys.executable, ‘’’ -c “’’’

‘’’import os;’’’ ‘’’open(‘%s’, ‘wb’)’’’ ‘’’os.remove(%s)”’’’ % (t, t), try_admin=True)

Metadata

Release files for run-exe 0.5.post2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for run-exe 0.5.post2
File Size Uploaded Provenance Actions
run-exe-0.5.post2.zip 17.3 kB Without provenance Details for run-exe-0.5.post2.zip

Release files / run-exe-0.5.post2.zip

Download URL run-exe-0.5.post2.zip
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4dca71023bd084c842c7710638e789f515b6c5502eded21d21e9325dcdf58405
BLAKE2b-256 checksum
How to use checksums
a06a8d30bccecc4239ab3d59b1640c3310a6ff41fa471f786a81fc8ade0dc88b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for run-exe 0.5.post2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page