simple tool for checking if a python module is installed
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dave 1ea92c74e7 initial commit 4 months ago
hasmodule initial commit 4 months ago
.gitignore Base python project 5 months ago
README.md initial commit 4 months ago
requirements.txt Base python project 5 months ago
setup.py initial commit 4 months ago

README.md

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.