Comparison
grimp vs importlab vs modulegraph2 vs python-dep-tree
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Builds a queryable graph of the imports within one or more Python packages.
Actively maintained. Last release 3 weeks ago, commits in 9 of the last 26 weeks. A safe choice.
pip install grimpA library to calculate python dependency graphs.
Archived. The repository is read-only: no more fixes or releases will come.
pip install importlabA module import dependency graph for Python projects.
Low maintenance activity. Last release 12 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install modulegraph2Python wrapper for Dep Tree https://github.com/gabotechs/dep-tree
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install python-dep-treeIn short
- importlab is archived: avoid it for new projects.
- python-dep-tree is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- grimp is the most used: 43.4M downloads a month, 57× more than importlab.
- grimp also has the best Pythie’s Index (79).
- modulegraph2 is growing fastest: downloads +92% over the last month.
- Safe default for a new project: grimp.
Side by side
| Metric | grimp | importlab | modulegraph2 | python-dep-tree |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 79 | Pythie’s Index: 5 | Pythie’s Index: 20 | Pythie’s Index: 27 |
| Verdict | Actively maintained | Archived | Low maintenance activity | Slowing down |
| Downloads / month | 43.4M | 765.6K | 262.9K | 101.5K |
| Downloads, month over month | +31% | -8% | +92% | +357% |
| GitHub stars | 139 | 179 | 15 | – |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 16 | 9 | 1 | 0 |
| Last release | Nov 13, 2026 | Oct 6, 2023 | Nov 23, 2025 | Feb 18, 2024 |
| Releases, 12 months | 7 | 0 | 0 | 0 |
| Weeks with commits | 9 / 26 | 0 / 26 | 0 / 26 | – |
| Recent contributors | 7 | 9 | 3 | – |
| First release | Dec 2018 | May 2018 | Feb 2019 | Aug 2023 |
| Python versions | 3.11 – 3.15 | – | 3.10 – 3.15 | 3.7 – 3.12 |
| License | BSD-2-Clause | Apache-2.0 | MIT | unknown |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.