pydeps
Display module dependencies
Decision gist · record as of 2026-08-14
Yes. pydeps is actively maintained, has low install friction, carries no security vulnerabilities, and solves a clear problem—visualizing Python module dependencies—that is difficult to do manually in large codebases. The permissive BSD-2-Clause license poses no restrictions. The only real prerequisite is having Graphviz installed separately, which is a one-time system setup.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Graphviz must be installed separately and the `dot` command must be on your PATH for graph rendering to work.
- Low friction: pure Python wheel with a single runtime dependency (stdlib_list).
- Active maintenance with a release 11 days ago and 2106 repository stars.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects.
last release 2026-08-03 (11 days) · last repo commit 2026-08-11 · 2,106 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 391,797 downloads/mo, #7,011 on PyPI
Alternatives
Verify before relying
pip install pydeps
pydeps mypackage
# Generates mypackage.svg showing module dependencies- Whether pydeps can handle large codebases (thousands of modules) without performance degradation.
- Support for analyzing type hints or static imports beyond bytecode analysis.
- Integration with IDEs or CI/CD pipelines beyond command-line usage.
What it is and what it does
pydeps is a command-line tool and Python library that visualizes the dependency structure of Python packages by analyzing import bytecode and generating dependency graphs. It works by inspecting the import opcodes in compiled Python bytecode to discover which modules import which, then renders the result as an SVG or PNG diagram using Graphviz. The tool can highlight circular imports, filter by depth or distance, exclude standard library modules, and organize dependencies into clusters.
The package is designed primarily for command-line use but can also be imported and used as a library from Python code. It requires Graphviz to be installed separately on your system. The tool only discovers modules that are actually imported and can be found via Python's import machinery; unimported files in your directory are not included unless you use the `--include-missing` flag. It supports modern Python versions (3.10+) and has been actively maintained since 2014.
Use it for
- Identify circular imports in a codebase that may cause initialization problems or refactoring challenges.
- Visualize the overall architecture of a large Python project to understand module organization and dependencies.
- Generate dependency diagrams for documentation or architecture review presentations.
- Detect tightly coupled modules by examining import patterns and suggesting areas for decoupling.
- Analyze which external packages your project depends on directly using the `--externals` flag.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pydeps is actively maintained, has low install friction, carries no security vulnerabilities, and solves a clear problem—visualizing Python module dependencies—that is difficult to do manually in large codebases. The permissive BSD-2-Clause license poses no restrictions. The only real prerequisite is having Graphviz installed separately, which is a one-time system setup.
Install
pydeps on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (stdlib_list). Active maintenance with a release 11 days ago and 2106 repository stars. Requires Graphviz to be installed separately on your system for graph rendering.
Graphviz must be installed separately and the `dot` command must be on your PATH for graph rendering to work.
License in practice
BSD-2-Clause is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install pydeps
pydeps mypackage
# Generates mypackage.svg showing module dependencies
Verify before relying
- Whether pydeps can handle large codebases (thousands of modules) without performance degradation.
- Support for analyzing type hints or static imports beyond bytecode analysis.
- Integration with IDEs or CI/CD pipelines beyond command-line usage.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagestdlib_list |
| Maintenance | Actively maintained 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 391,797 / month, #7,011 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries :: Python Modules |
Evidence: pydeps-3.0.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python module dependency visualization”
- pydepsVisualizes Python module dependencies as graphs by analyzing import…
- modulegraphmodulegraph analyzes Python module dependencies by examining bytecode…
- modulegraph2Modulegraph2 builds and introspects a dependency graph of Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pipdeptree · py-import-cycles · pyan3 · modulegraph · pydot · importlab · grimp · cyclic · mo-imports · import-deps