pkglts.option.reqs.find_requirements module

This tool will display all dependencies used by this package.

pkglts.option.reqs.find_requirements.action_find_reqs(cfg, **kwds)[source]

Find dependencies used by this package.

pkglts.option.reqs.find_requirements.find_reqs(pth)[source]

Find all requirements (imports) used by a script.

Parameters:

pth (Path) – path to file to parse

Returns:

list of package names

Return type:

(list)

pkglts.option.reqs.find_requirements.iter_ext_imports(body)[source]
pkglts.option.reqs.find_requirements.parser_find_reqs(subparsers)[source]

Associate a CLI to this tool.

Notes: The CLI will be a subcommand of pmg.

Parameters:

subparsers (ArgumentParser) – entity to create a subparsers

Returns:

a unique id for this parser (callable): the action to perform

Return type:

(string)