userpath
Ever wanted to release a cool new app but found it difficult to add its location to PATH for users? Me too! This tool does that for you on all major operating systems and does not require elevated privileges!
Fear not, this only modifies the user PATH; the system PATH is never touched nor even looked at!
Installation
adduserpath is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 2.6-2.7/3.3+ and PyPy.
$ pip install adduserpath
Commands
Only 3!
$ userpath -h
Usage: userpath [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
append Appends to the user PATH
prepend Prepends to the user PATH
verify Checks if locations are in the user PATH
API
>>> import userpath
>>> location = r'C:\Users\Ofek\Desktop\test'
>>>
>>> userpath.in_current_path(location)
False
>>> userpath.in_new_path(location)
False
>>> userpath.append(location)
True
>>> userpath.in_new_path(location)
True
>>> userpath.need_shell_restart(location)
True
License
userpath is distributed under the terms of both
at your option.
Metadata
Release files for adduserpath 0.4.0
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 |
|---|---|---|---|---|
| adduserpath-0.4.0.tar.gz | 9.4 kB | Without provenance | Details for adduserpath-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adduserpath-0.4.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for adduserpath-0.4.0-py2.py3-none-any.whl |
Total release size: 17.5 kB
Release files / adduserpath-0.4.0.tar.gz
| Download URL | adduserpath-0.4.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d12612a529028a2bda79f5111eab6ba4b787625b3fd8958f47ac9371ea9a76dc
|
|
BLAKE2b-256 checksum How to use checksums |
adcb50f2be266f19130308cd705a3556f1d06220a5ca60a446c496a485b12726
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / adduserpath-0.4.0-py2.py3-none-any.whl
| Download URL | adduserpath-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3494c0a58b8792c05feccfc3a4d3aee6b02ce469dab33798b4eae7622f631d7d
|
|
BLAKE2b-256 checksum How to use checksums |
e8533035ff330183156e93295f5e83735ae1626ad38e215fdf837fe20ba0fab0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for adduserpath 0.4.0
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.