adduserpath-0.4.0
توضیحات
Cross-platform tool for adding locations to the user PATH, no sudo/runas required!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | adduserpath-0.4.0 |
| نام | adduserpath |
| نسخه کتابخانه | 0.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ofek Lev |
| ایمیل نویسنده | ofekmeister@gmail.com |
| آدرس صفحه اصلی | https://github.com/ofek/userpath |
| آدرس اینترنتی | https://pypi.org/project/adduserpath/ |
| مجوز | MIT/Apache-2.0 |
userpath
========
.. image:: https://img.shields.io/pypi/v/adduserpath.svg?style=flat-square
:target: https://pypi.org/project/adduserpath
:alt: Latest PyPI version
.. image:: https://img.shields.io/travis/ofek/userpath/master.svg?style=flat-square
:target: https://travis-ci.org/ofek/userpath
:alt: Travis CI
.. image:: https://img.shields.io/appveyor/ci/ofek/userpath/master.svg?style=flat-square
:target: https://ci.appveyor.com/project/ofek/userpath
:alt: AppVeyor CI
.. image:: https://img.shields.io/pypi/pyversions/adduserpath.svg?style=flat-square
:target: https://pypi.org/project/adduserpath
:alt: Supported Python versions
.. image:: https://img.shields.io/pypi/l/adduserpath.svg?style=flat-square
:target: https://choosealicense.com/licenses
:alt: License
-----
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!**
.. contents:: **Table of Contents**
:backlinks: none
Installation
------------
adduserpath is distributed on `PyPI <https://pypi.org>`_ as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 2.6-2.7/3.3+ and PyPy.
.. code-block:: bash
$ pip install adduserpath
Commands
--------
Only 3!
.. code-block:: bash
$ 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
.. image:: https://raw.githubusercontent.com/ofek/visuals/master/userpath/lt.PNG
:alt: Example run
API
---
.. code-block:: python
>>> 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
- `MIT License <https://choosealicense.com/licenses/mit>`_
- `Apache License, Version 2.0 <https://choosealicense.com/licenses/apache-2.0>`_
at your option.
نیازمندی
| مقدار | نام |
|---|---|
| - | click |
نحوه نصب
نصب پکیج whl adduserpath-0.4.0:
pip install adduserpath-0.4.0.whl
نصب پکیج tar.gz adduserpath-0.4.0:
pip install adduserpath-0.4.0.tar.gz