deptry
github.com · Open source · Active
Finds unused and missing Python dependencies, now faster
- Developer tools
- Open source
- Python
- Day-7 check
- Day-30 check
- python
- dependencies
- linting
- rust
- poetry
- cicd
- pep621
- unused python dependencies
- missing python dependencies
- pyproject dependency checker
- Stars
- 1.5k
- Forks
- 56
- Open issues
- 47
- Last commit
- Releases
- 87
- Found
- 2 years ago
GitHub figures as of . They are context, not a ranking.
deptry is a command-line tool that checks a Python project for unused, missing and transitive dependencies. Version 0.14.0 is up to ten times faster because it uses Rust to parse imports. It suits Python developers who want to keep their dependency lists clean.
Repository description on GitHub: “Find unused, missing and transitive dependencies in a Python project.”
What it does
- Finds unused, missing and transitive Python dependencies
- Rust-based import parsing, up to 10 times faster in version 0.14.0
- Supports Poetry, pip, PDM, uv and PEP 621 projects
Good for
- Find unused packages before cleaning up a pyproject file
- Catch imports that are missing from a project's dependencies
- Run dependency checks in a CI pipeline
Suits: Python developers who want to keep their dependency lists clean.
What you can try
Read the README on GitHub and install from source.
Install
pip install deptryTaken from the project’s README. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw deptry on , when flo12392 posted it to Show HN. The oldest published release on GitHub is 0.0.1, dated . deptry had been shipping tagged releases for 561 days before it was found. 87 releases have been published in total; the latest is 0.25.1 ().
Day-7 and day-30 updates
Day 7 2 releases shipped
- 2 releases in the first 7 days: 0.14.1 (18 Mar 2024), 0.14.2 (19 Mar 2024)
- Show HN discussion at check time: 142 points, 24 comments. API record
Checked , later than day 7 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: fpgmaas/deptry
- Release 0.0.1
- Found: flo12392 posted it to Show HN. Show HN
- Release 0.22.0
- Release 0.23.0
- Release 0.23.1
- Release 0.24.0
- Release 0.25.0
- Release 0.25.1
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 87 releases. All releases on GitHub
Quick answers
- When was deptry released?
- Its first tagged release on GitHub is dated 2 Sep 2022. Kip found it on Show HN on 16 Mar 2024.
- Is deptry open source?
- Its source is public on GitHub at fpgmaas/deptry under the MIT licence.
- What does deptry run on?
- Command line.
- Is deptry free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is deptry still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | fpgmaas/deptry REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-39724132. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.