# osprey-oss/deptry

Find unused, missing and transitive dependencies in a Python project.

Repository: https://github.com/osprey-oss/deptry
Canonical: https://ross.abutalabs.com/products/deptry
Homepage: https://deptry.com/
Language: Python
License: MIT
License Family: permissive
Topics: dependencies, poetry, python, cicd, pep621, rust
Last push: 2026-08-26T15:08:56+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 75, longevity 100
- inputs: {"age_days": 1462, "days_push": 7, "days_rel": 168, "gap_med": 27.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1467, forks 48 (observed 2026-08-28T04:04:48.710103+00:00)

## What it is
deptry is a command line tool that detects unused, missing, and transitive dependency issues in Python projects by scanning imported modules and comparing them against declared dependencies. It supports Poetry, pip, PDM, uv, and any PEP 621-compliant project.

## Use cases
- find unused dependencies in a python project
- detect missing dependencies before publishing a package
- check for transitive dependency issues in ci
- lint pyproject.toml dependencies against actual imports
- enforce dependency hygiene in github actions

## When to choose
- you maintain a Python project with Poetry, pip, PDM, or uv and want automated dependency checks
- you want to catch unused or missing imports in CI pipelines
- you need a fast, configurable linter for dependency declarations

## When to avoid
- your project is not Python-based
- you need full dependency resolution or lockfile management rather than auditing
- you cannot run the tool inside the project's virtual environment

## Facets
- artifact type: cli-tool
- maturity: active
- function: dependency-audit, linter, cli, developer-tools
- domain: developer-tools, testing
- platform: cli, python, cross-platform
- tags: dependency-management, pep621, poetry, uv, code-quality, ci-cd, python, automation

## Member repositories
- osprey-oss/deptry (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:48.710103+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:01.187190+00:00, confidence not recorded.
  - readme: https://github.com/osprey-oss/deptry (fetched 2026-08-28T04:04:48.710103+00:00, sha 4a23c3694fe7)
  - homepage: https://deptry.com/ (fetched 2026-08-29T11:43:12.797346+00:00, sha 71bf4767168d)
  - registry_pypi: https://pypi.org/pypi/deptry/json (fetched 2026-08-29T11:43:12.809687+00:00, sha e7574d3ac6d6)
  - site_page: https://deptry.com/CHANGELOG (fetched 2026-08-29T11:43:12.806632+00:00, sha ca7dd593023e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
