pyscripts.
direct_dependencies
Get the direct dependencies of the given python file on a given package. The package must be importable from the current environment.
list with the paths to the dependencies.
list(str)
See also
dependencies()