pydep is a tool to list all missing dependencies of your codebase. You can use it to automate missing module installation as well.
To install pydep, clone the repo and run the install script
> git clone [email protected]:justcli/pydep.git
> cd pydep
> ./install.sh
To list missing dependecies in a file or directory
> pydep myfile.py
> pydep *.py
> pydep ~/src
> pydep .
For detailed listing, you may use -v option
> pydep -v *.py
> pydep -v .
> pydep -v a.py b.py
Note that pydep filters out all . folder like .git, .venv etc.
The output of pydep is machine friendly. It can be piped to commands like 'pip3 install...' or some other command to install the modules.