simple tool for checking if a python module is installed
hasmodule | ||
.gitignore | ||
README.md | ||
requirements.txt | ||
setup.py |
has-module
Simple tool for checking if a python module is installed.
has-module module_name [version]
- If the python module named by
$module_name
is not installed, return exit code 1. - If
$version
is supplied and the installed module's version doesn't match it, return exit code 1. - Otherwise, the module was successfully imported and the exit code will be 0.