doc/tutorial/tuto_1_3.py
def task_imports():
    """find imports from a python module"""
    base_path = pathlib.Path('projects/requests/requests')
    pkg_modules = ModuleSet(base_path.glob('**/*.py'))
    for name, module in pkg_modules.by_name.items():
        yield {
            'name': name,
            'file_dep': [module.path],
            'actions': [(get_imports, (pkg_modules, module.path))],
        }
find imports from a python module
find imports from a python module
find imports from a python module
def task_imports():
    base_path = pathlib.Path('projects/requests/requests')
    pkg_modules = ModuleSet(base_path.glob('**/*.py'))
    for name, module in pkg_modules.by_name.items():
        yield {
            'name': name,
            'file_dep': [module.path],
            'actions': [(get_imports, (pkg_modules, module.path))],
        }
def task_imports ( ) : base_path = pathlib . Path ( 'projects/requests/requests' ) pkg_modules = ModuleSet ( base_path . glob ( '**/*.py' ) ) for name , module in pkg_modules . by_name . items ( ) : yield { 'name' : name , 'file_dep' : [ module . path ] , 'actions' : [ ( get_imports , ( pkg_modules , module . path ) ) ] , }
find imports from a python module
find imports from a python module
"""find imports from a python module"""