IMPORTLAB(1)
π 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.pyfiles. 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
- debian trixie: python3-importlab 0.8.1-4 Β· Apache-2.0
- ubuntu resolute: python3-importlab 0.8.1-4 Β· Apache-2.0
- ubuntu stonking: python3-importlab 0.8.1-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms