adminpy - Python Admin access for most platforms
This module makes it easy to check system platform type and gain admin rights for scripts that require it.
This utilises PyUAC on the Windows platform and requires the use of Sudo on *NIX systems for admin rights escalation.
The purpose of this is to try and make people's life easier when needed more rights for python scripts.
Usage of the module
There are 3 functions of this module
- The sysinfo() function outputs whether the script recognises which type of system it's running on.
Example: On a Windows system, the script will output,"You are running on a Windows-based system."
-
The admincheck() function will output a "Yes" or "No", depending on if it has root or admin privilege
-
The runadmin() function will utilise ctypes function or Sudo (for linux) to relaunch script if does not have root or admin privilege
Requirements
Metadata
Release files for adminpy 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adminpy-0.5.1.tar.gz | 15.0 kB | Without provenance | Details for adminpy-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adminpy-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for adminpy-0.5.1-py3-none-any.whl |
Total release size: 30.0 kB
Release files / adminpy-0.5.1.tar.gz
| Download URL | adminpy-0.5.1.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7583a3b5704f9af4919fb357cd3e577320ca8f2c7aadefad15f497285c75d9e
|
|
BLAKE2b-256 checksum How to use checksums |
44df4bf78cabfb1ae5656c6fd5eddb53c3e4731e46a2f139ea082a87c73b1427
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / adminpy-0.5.1-py3-none-any.whl
| Download URL | adminpy-0.5.1-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea67ecae264ab26d706534d6e548ac29c119a10fca86ac5f882b2bcac60ca3e0
|
|
BLAKE2b-256 checksum How to use checksums |
c32e150de3ca14ce39ba2fdaa759257285be1c9bb5743e5940074064cb2f4cb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for adminpy 0.5.1
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.