---
name: "importlab"
section: "1"
platform: "linux"
package: "python3-importlab"
version: "0.8.1-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/importlab"
---

# importlab(1)

A library to calculate python dependency graphs.

## NAME

importlab - A library to calculate python dependency graphs.

## DESCRIPTION

usage: importlab \[-h\] \[--tree\] \[--unresolved\] \[-V PYTHON\_VERSION\]

-

  \[-P PYTHONPATH\] \[--trim\] \[-v\] \[input ...\]

### positional arguments:

- input

  Input files or directories. Directories will be recursively scanned for .py files

### options:

- **-h**, **--help**

  show this help message and exit

- **--tree**

  Display import tree.

- **--unresolved**

  Display unresolved dependencies.

- **-V**, **--python\_version** PYTHON\_VERSION

  Python version of target code, e.g. "2.7"

- **-P**, **--pythonpath** PYTHONPATH

  Directories for reading dependencies - a list of paths separated by ":".

- **--trim**

  Trim the dependencies of builtin and system files.

- **-v**, **--version**

  Script version

## SEE ALSO

The full documentation for **importlab** is maintained as a Texinfo manual.  If the **info** and **importlab** programs are properly installed at your site, the command

-

  **info importlab**

should give you access to the complete manual.
