--- id: depgather version: "0.5.0" license: MIT license_treatment: permissive maintenance: active --- # depgather — Get a list of deps given a pyproject.toml, uv.lock, requirements.txt etc License: permissive · Maintenance: active · Downloads: 94.2K/mo ## What it is and what it does DepGather is a utility library that reads Python project dependency declarations from multiple file formats and returns a structured list of dependencies. It handles pyproject.toml, uv.lock, requirements.txt, and related formats, making it useful when you need programmatic access to a project's declared dependencies without parsing files manually. The package wraps loguru for logging, pydantic for data validation, requirements-parser for parsing requirements files, and tomli for TOML parsing. It's designed for developers who need to introspect or analyze Python project dependencies as part of a larger tool or workflow—such as dependency auditing, migration scripts, or build system integration. Use it for: - Audit all dependencies in a project by reading pyproject.toml or requirements.txt programmatically. - Build a dependency migration tool that reads from one format and writes to another. - Analyze lock file contents (uv.lock) to understand pinned versions across a project. - Integrate dependency discovery into a build or CI/CD script without shell parsing. - Generate dependency reports or graphs by extracting structured dependency data. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Extracts and lists dependencies from multiple Python project file formats including pyproject.toml, uv.lock, and requirements.txt. Yes, if you need to programmatically extract dependencies from Python project files. The package has low install friction, active maintenance, MIT licensing, no known vulnerabilities, and a clear single purpose. It's a straightforward utility with minimal dependencies—install it when you're building tooling that requires dependency introspection. ## Install pip install depgather uv add depgather poetry add depgather ## Installing depgather Before you install: Low friction install with four runtime dependencies (loguru, pydantic, requirements-parser, tomli). Active maintenance as of 2026-06-21 with a recent release cycle. License in practice: MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice. Quickstart: pip install depgather from depgather import get_deps deps = get_deps('pyproject.toml') Requires Python 3.12 or later. Verify before relying: - Whether the package handles all dependency specifier formats (extras, version constraints, environment markers) or only basic cases. - Performance characteristics when parsing large or complex lock files. - Whether it supports all modern Python packaging formats beyond the three mentioned in the summary. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 94.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags extract dependencies from pyproject.toml, parse requirements.txt programmatically, read uv.lock dependencies, list project dependencies, dependency parser python, requirements file reader, pyproject.toml parser, dependency-management, build-tools [View on SkillFed](https://skillfed.io/packages/depgather) · [View on PyPI](https://pypi.org/project/depgather/)