A simple inscript multi-package installer
Project description
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 dependencyfixer function 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:
run dependencyfixer.py and follow instruction
Importing to other python scripts
Use below command to import
from dependency-fixer import dependencyfixer
- Function (dependencyfixer) takes a list consisting of all module names that are to be installed, as a arguement
- Example:
dep=['pillow','jupyter'] result,leftdep=dependencyfixer(dep)
- This function returns 2 values :
- leftdependencies : (list of unsuccessfull modules)
- result {1,0,-1} | 1 | : All modules installed | 0 | : No modules installed | -1 | : Some modules can not be installed
**If not installed by pip or using repo clone, to import in other python scripts be sure 'dependencyfixer.py' script is in same folder as calling script or specify appropriate path while importing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dependency_fixer-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60c125a5176e5a10d9a9ddbe252b4821d3103aeda3a1c1664e1561510366b644 |
|
MD5 | 408746493c04eb2e925dbdfe497afb09 |
|
BLAKE2b-256 | 490f4fa272da8a49dcd680216e887a08d1f05124b26a57bc4f76739615a27011 |