{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"Scans Python projects to detect unused, missing, and transitive dependency issues by analyzing imports and comparing them against declared dependencies in Poetry, pip, PDM, uv, or PEP 621 projects.","skillfed_tags":["dependency-audit","cli-tool","rust-backed"],"use_cases":["Enforce clean dependency hygiene in CI/CD pipelines by catching unused or missing declarations before merge","Audit existing projects to identify and remove bloated or forgotten dependencies that slow installation","Validate that dev-only dependencies (like test frameworks) aren't accidentally imported in production code","Detect missing transitive dependencies that could break if an intermediate package changes its exports","Integrate into pre-commit hooks to catch dependency issues during local development"],"what_it_does":"Deptry is a command-line tool that audits Python project dependencies by scanning source code for actual imports and comparing them against what your project declares. It works with Poetry, pip, PDM, uv, and any project following PEP 621, identifying three main problems: dependencies you've declared but never use, dependencies you import but forgot to declare, and transitive dependencies that may cause issues. You run it from your project root within its virtual environment, and it reports each issue with a file location and error code.\n\nThe tool is written in Rust for performance and distributed as prebuilt wheels for most platforms. It's actively maintained, supports Python 3.10 through 3.14, and can be configured via command-line flags or a `[tool.deptry]` section in pyproject.toml. Its main dependencies are lightweight CLI and parsing libraries (click, colorama, packaging, requirements-parser, tomli).","worth_installing":"Yes. Deptry solves a real problem\u2014dependency drift\u2014that most Python projects accumulate over time. It's actively maintained, has no known vulnerabilities, uses a permissive license, and the medium install friction (Python 3.10+ requirement, virtual-environment-only) is a reasonable trade-off for a development tool. Install it as a dev dependency and run it in CI."},"id":"deptry","links":{"html":"https://skillfed.io/packages/deptry","md":"https://skillfed.io/packages/deptry.md","pypi":"https://pypi.org/project/deptry/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-18","license_spdx":"MIT","license_treatment":"permissive","name":"deptry","python_support":"supports_current","summary":"A command line utility to check for unused, missing and transitive dependencies in a Python project."},"popularity":{"monthly_downloads":8838663,"position":1590,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.25.1"}
