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 setTruethen stops any futher execution of script in which function is used ) ( False by default ) ➤auto( If setFalsethen asks for user's consent to install packages, if user refuses, then return result=0 ) ( True by default ) ➤verbose( If setTruethen 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
Metadata
Release files for dependency-fixer 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dependency-fixer-1.0.2.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dependency_fixer-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / dependency-fixer-1.0.2.tar.gz
| Download URL | dependency-fixer-1.0.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d018ea727ff3bededf931a237eb836f77d240326be4893b192099017470aeb9
|
|
BLAKE2b-256 checksum How to use checksums |
72ef6d76a0d8ab204f4e0e1670fef0e66e3425328ca0e6f02efa122893817222
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8
|
Release files / dependency_fixer-1.0.2-py3-none-any.whl
| Download URL | dependency_fixer-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94b53bd059dd2e64b6090d4b286448a8f7b4783faf4bb0c6461a94d5c0d40592
|
|
BLAKE2b-256 checksum How to use checksums |
0cdf87c65e8f12259116bbf37a1592c2e791d38ac2608a1c46b12ec1cad1660d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8
|