Dependency Checker
A lightweight pythonic way to verify if python packages are on the latest version
Install
pip install dependency-checker
How to use
from dependency_checker import get_installed_dependencies, is_latest_version
dependency_checker has two functionalities:
- Checking a python project's dependencies
- Checking if a python package is on the latest version
Each are intuitive to use, and have detailed documentation available.
To check a package's dependencies, we can use the get_installed_dependencies function, passing in the string name of the module:
get_installed_dependencies('dependency-checker', depth_limit=1)
{'packaging': '21.0', 'pip': '21.2.4', 'pipdeptree': '2.1.0'}
Generally a depth of 1 is enough to get a package's main dependencies, bar pip, packaging, and other "standard" python resources.
If we also want to include the original package, we can pass that in as a parameter:
get_installed_dependencies('dependency-checker', depth_limit=1, include_self=True)
{'dependency-checker': '0.0.1',
'packaging': '21.0',
'pip': '21.2.4',
'pipdeptree': '2.1.0'}
There also exists is_latest_version, which will see if a package version is the latest available on pypi:
is_latest_version('pipdeptree', '2.0.9')
False
Automatically Building a requirements.txt file
You can also use dependency_checker to automatically build a requirements file from the command-line. It is an extension of pipreqs, combining both our functionalities together to give a more fine-grained and stable text file.
To read more, see the documentation here
Metadata
Release files for dependency-checker 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dependency_checker-0.0.5.tar.gz | 12.3 kB | Without provenance | Details for dependency_checker-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dependency_checker-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for dependency_checker-0.0.5-py3-none-any.whl |
Total release size: 22.9 kB
Release files / dependency_checker-0.0.5.tar.gz
| Download URL | dependency_checker-0.0.5.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a59ffd61cba608f2c1c0f5a877b050a01155209f964522ae75d05aa24403c7b4
|
|
BLAKE2b-256 checksum How to use checksums |
adedac9781c52305ed5997ec63d818400eb59a2c070a0e46d1a45934373bdc84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / dependency_checker-0.0.5-py3-none-any.whl
| Download URL | dependency_checker-0.0.5-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
488772b6f031c3089a2c64c73c94e9f5c10c7189b832dd9f9adee9825dce8648
|
|
BLAKE2b-256 checksum How to use checksums |
66bb0507af4002df6e67390e44daf00e44a3ccee09877bdd30eb17bbd1bf65c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Security for dependency-checker 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.