userpath-1.9.2
توضیحات
Cross-platform tool for adding locations to the user PATH
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | userpath-1.9.2 |
| نام | userpath |
| نسخه کتابخانه | 1.9.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Ofek Lev <oss@ofek.dev> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/userpath/ |
| مجوز | - |
# userpath
| | |
| --- | --- |
| CI/CD | [](https://github.com/ofek/userpath/actions/workflows/test.yml) [](https://github.com/ofek/userpath/actions/workflows/build.yml) |
| Package | [](https://pypi.org/project/userpath/) [](https://pypi.org/project/userpath/) |
| Meta | [](https://spdx.org/licenses/) [](https://github.com/sponsors/ofek) |
-----
This is a tool for modifying a user's `PATH`.
**Table of Contents**
- [Installation](#installation)
- [CLI](#cli)
- [API](#api)
- [License](#license)
## Installation
```console
pip install userpath
```
## CLI
```console
$ 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
```pycon
>>> 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 the [MIT](https://spdx.org/licenses/MIT.html) license.
نیازمندی
| مقدار | نام |
|---|---|
| - | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl userpath-1.9.2:
pip install userpath-1.9.2.whl
نصب پکیج tar.gz userpath-1.9.2:
pip install userpath-1.9.2.tar.gz