{"id":13740053,"url":"https://github.com/fpgmaas/deptry","last_synced_at":"2025-05-13T21:11:23.659Z","repository":{"id":58429465,"uuid":"531412781","full_name":"fpgmaas/deptry","owner":"fpgmaas","description":"Find unused, missing and transitive dependencies in a Python project.","archived":false,"fork":false,"pushed_at":"2025-05-07T23:28:08.000Z","size":3161,"stargazers_count":1060,"open_issues_count":47,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-08T00:27:33.764Z","etag":null,"topics":["cicd","dependencies","pep621","poetry","python","rust"],"latest_commit_sha":null,"homepage":"https://deptry.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fpgmaas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/supported-dependency-managers.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-01T07:35:36.000Z","updated_at":"2025-05-06T17:45:56.000Z","dependencies_parsed_at":"2023-02-16T05:31:55.390Z","dependency_job_id":"e2f1eff9-b177-4372-b503-f6f0eaacc4e2","html_url":"https://github.com/fpgmaas/deptry","commit_stats":{"total_commits":785,"total_committers":12,"mean_commits":65.41666666666667,"dds":0.4356687898089172,"last_synced_commit":"6d888319a2ff4264a2022d8967af5b61091d94c5"},"previous_names":[],"tags_count":84,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpgmaas%2Fdeptry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpgmaas%2Fdeptry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpgmaas%2Fdeptry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpgmaas%2Fdeptry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fpgmaas","download_url":"https://codeload.github.com/fpgmaas/deptry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254029003,"owners_count":22002283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cicd","dependencies","pep621","poetry","python","rust"],"created_at":"2024-08-03T04:00:41.820Z","updated_at":"2025-05-13T21:11:18.636Z","avatar_url":"https://github.com/fpgmaas.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"deptry logo\" width=\"460\" height=\"300\" src=\"https://raw.githubusercontent.com/fpgmaas/deptry/main/docs/static/deptry_Logo-01.svg\"\u003e\n\u003c/p\u003e\n\n[![Release](https://img.shields.io/github/v/release/fpgmaas/deptry)](https://pypi.org/project/deptry/)\n[![Build status](https://github.com/fpgmaas/deptry/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/fpgmaas/deptry/actions/workflows/main.yml)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/deptry)](https://pypi.org/project/deptry/)\n[![codecov](https://codecov.io/gh/fpgmaas/deptry/branch/main/graph/badge.svg)](https://codecov.io/gh/fpgmaas/deptry)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/deptry)](https://pypistats.org/packages/deptry)\n[![License](https://img.shields.io/github/license/fpgmaas/deptry)](https://img.shields.io/github/license/fpgmaas/deptry)\n\n_deptry_ is a command line tool to check for issues with dependencies in a Python project, such as unused or missing\ndependencies. It supports projects\nusing [Poetry](https://python-poetry.org/), [pip](https://pip.pypa.io/), [PDM](https://pdm-project.org/), [uv](https://docs.astral.sh/uv/),\nand more generally any project supporting [PEP 621](https://peps.python.org/pep-0621/) specification.\n\nDependency issues are detected by scanning for imported modules within all Python files in a directory and its\nsubdirectories, and comparing those to the dependencies listed in the project's requirements.\n\n---\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://deptry.com\"\u003eDocumentation\u003c/a\u003e - \u003ca href=\"https://deptry.com/contributing/\"\u003eContributing\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Quickstart\n\n### Installation\n\nTo add _deptry_ to your project, run one of the following commands:\n\n```shell\n# Install with poetry\npoetry add --group dev deptry\n\n# Install with pip\npip install deptry\n```\n\n\u003e **Warning**: When using pip to install _deptry_, make sure you install it within the virtual environment of your project. Installing _deptry_ globally will not work, since it needs to have access to the metadata of the packages in the virtual environment.\n\n### Prerequisites\n\n_deptry_ should be run within the root directory of the project to be scanned, and the project should be running in its own dedicated virtual environment.\n\n### Usage\n\nTo scan your project for dependency issues, run:\n\n```shell\ndeptry .\n```\n\nExample output could look as follows:\n\n```console\nScanning 2 files...\n\nfoo/bar.py:1:0: DEP004 'numpy' imported but declared as a dev dependency\nfoo/bar.py:2:0: DEP001 'matplotlib' imported but missing from the dependency definitions\npyproject.toml: DEP002 'pandas' defined as a dependency but not used in the codebase\nFound 3 dependency issues.\n```\n\n### Configuration\n\n_deptry_ can be configured by using additional command line arguments, or by adding a `[tool.deptry]` section in _pyproject.toml_. For more information, see the [Usage and Configuration](https://deptry.com/usage/) section of the documentation..\n\n---\n\nRepository initiated with [fpgmaas/cookiecutter-poetry](https://github.com/fpgmaas/cookiecutter-poetry).\n","funding_links":[],"categories":["Python","Code Analysis"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpgmaas%2Fdeptry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffpgmaas%2Fdeptry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpgmaas%2Fdeptry/lists"}