Latest / Developer tools

deptry

github.com · Open source · Active

Finds unused and missing Python dependencies, now faster

Visit github.com ↗Share

  • linting
  • 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 deptry

Taken 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.

Day 30 5 releases shipped

  • 5 releases in the first 30 days: 0.14.1 (18 Mar 2024), 0.14.2 (19 Mar 2024), 0.15.0 (24 Mar 2024), 0.16.0 (4 Apr 2024), 0.16.1 (6 Apr 2024)
  • Show HN discussion at check time: 142 points, 24 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (6 in total, busiest month 2). Based on the most recent releases on record.
  1. Repository created on GitHub: fpgmaas/deptry
  2. Release 0.0.1
  3. Found: flo12392 posted it to Show HN. Show HN
  4. Release 0.22.0
  5. Release 0.23.0
  6. Release 0.23.1
  7. Release 0.24.0
  8. Release 0.25.0
  9. Release 0.25.1
  10. Day-7 check recorded by Kip (details)
  11. 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

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryfpgmaas/deptry
REST API record
GitHub Releasesrelease 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

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.