Showing imports
===============

findimports prints a simple import report by default:

    >>> from findimports import main
    >>> exitcode = main(['findimports', sample_tree])
    apple:
      os
      sys
    box.__init__:
    <BLANKLINE>
    box.cat:
      box.yarn
      gc
    box.yarn:
    <BLANKLINE>
    orange:
      gc

We can suppress external dependencies (such as standard library modules)

    >>> exitcode = main(['findimports', '--noext', sample_tree])
    apple:
    <BLANKLINE>
    box.__init__:
    <BLANKLINE>
    box.cat:
      box.yarn
    box.yarn:
    <BLANKLINE>
    orange:
    <BLANKLINE>

We can look at a higher-level overview (packages only):

    >>> exitcode = main(['findimports', '-p', sample_tree])
    apple:
      os
      sys
    box:
      gc
    orange:
      gc

