A lightweight pythonic way to check if a package's dependencies are out of date
Project description
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, check_new_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)
{'dependency-checker': '0.0.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.
There also exists check_new_version
, which will see if a package version is the latest available on pypi
:
check_new_version('pipdeptree', '2.0.9')
True
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
File details
Details for the file dependency_checker-0.0.1.tar.gz
.
File metadata
- Download URL: dependency_checker-0.0.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68fc8d924c0f36ca882b00b41c60d98cebdb392f914421d0086e4ce70f56336d |
|
MD5 | 27ecf2159c81dbd929acc67fed56ed98 |
|
BLAKE2b-256 | 2376857727a33bdbc5b8326047187521610102c615ce4c962227ce7f3fbf8c39 |
File details
Details for the file dependency_checker-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: dependency_checker-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9538ab0aeb1dc5816dcf863ba38dc886c21d953d51cca6c99f3d59af5cccfb42 |
|
MD5 | 340f8d748ea8b179699a24511e327c35 |
|
BLAKE2b-256 | b89362f8ee692e27a00c2c121a7cb627d8e0dafd73dab5158d44d850ccae00a9 |