dependency-fixer-1.0.2
توضیحات
A simple inscript multi-package installer
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dependency-fixer-1.0.2 |
| نام | dependency-fixer |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Avinash Karhana |
| ایمیل نویسنده | avinashkarhana1@gmail.com |
| آدرس صفحه اصلی | https://github.com/avinashkarhana/dependencyfixer |
| آدرس اینترنتی | https://pypi.org/project/dependency-fixer/ |
| مجوز | - |
# dependencyfixer
A python dependency fixer and importable script function
This python script can work as a standalone python module installer and can be used to install modules in program runtime by importing the **fix** function from dependencyfixer into program.
>uses `pip._internal.cli.main.main()` function to install
## #pros of using this package
* Standalone installing script
* Can install many modules at once
* gives report of how many script left to be installed(unsuccessful attempts)
### #install
`pip install dependency-fixer`
### #usage
> **❖Direct:** *(If are using source clone)
>> run **dependencyfixer.py** and follow instruction
> **❖Importing to other python scripts**
>> * ***Import it like*** :
>> `from dependencyfixer import fix`
>>>* Function and Arguements:
>>> >* Function: `fix(dep,auto=True,instantkill=False)`
>>> >* Arguements:
>>>> >* Mandatory: `dep` ( List of all packages to be installed or checked )
>>>> >* Optional:
➤`instantkill` ( If set `True` then stops any futher execution of script in which function is used ) ***( False by default )***
➤`auto` ( If set `False` then asks for user's consent to install packages, if user refuses, then return result=0 ) ***( True by default )***
➤`verbose` ( If set `True` then prints details in console during installation and after installation ) ***( False by default )***
>>* ***Example***:
`dep=['pillow','jupyter']`
`result,leftdep=fix(dep)`
>>>>* This function returns 2 values :
>>>> > * leftdependencies : (list of packages that couldn't be installed)
>>>> > * result {1,0,-1}
>>>>> | 1 | : All modules installed
>>>>> | 0 | : No modules installed
>>>>> | -1 | : Some modules can not be installed
نیازمندی
| مقدار | نام |
|---|---|
| >=20.0 | pip |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl dependency-fixer-1.0.2:
pip install dependency-fixer-1.0.2.whl
نصب پکیج tar.gz dependency-fixer-1.0.2:
pip install dependency-fixer-1.0.2.tar.gz