IMPORTLAB(1)

πŸ“¦
version 0.8.1 Β· 2 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– IMPORTLAB πŸ’–

okay bestie, listen up β€” this is importlab, and she is literally a library to calculate python dependency graphs. that's the whole vibe. no cap. πŸ¦‹


✨ DESCRIPTION ✨

so here's how you actually run her:

importlab [-h] [--tree] [--unresolved] [-V PYTHON_VERSION]
          [-P PYTHONPATH] [--trim] [-v] [input ...]

that's the usage line, memorise it, it's giving main character energy πŸ‘‘

🌸 positional arguments 🌸

  • input β€” input files or directories, bestie. and if you hand her a directory? she will recursively scan it for .py files. like she goes in. she finds them. she's thorough. ✨

πŸ’… options πŸ’…

  • -h, --help β€” shows this help message and then dips (exits). iconic behaviour, honestly.
  • --tree β€” displays the import tree. 🌳 yes, like an actual tree. it's giving genealogy but for your imports.
  • --unresolved β€” displays unresolved dependencies. aka the ones that ghosted you 😭
  • -V, --python_version PYTHON_VERSION β€” the python version of the target code you're dealing with, for example "2.7". (yes "2.7", in quotes, she said what she said πŸ’€)
  • -P, --pythonpath PYTHONPATH β€” directories for reading dependencies. it's a list of paths separated by ":". so like, colon-separated, no commas, no spaces, just :. periodt.
  • --trim β€” trims the dependencies of builtin and system files. bye bye clutter πŸŽ€
  • -v, --version β€” script version. just the version. that's it. that's the flag. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

the full documentation for importlab is maintained as a Texinfo manual, bestie. so if the info and importlab programs are properly installed at your site, the command

info importlab

should give you access to the complete manual. that's the plug. iykyk πŸ’œ


and that's the whole page, babe β€” importlab 0.8.1, brought to you in April 2025. go build some dependency graphs, you absolute legend πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from