Metadata-Version: 2.4
Name: win_depends
Version: 1.2.0
Summary: Windows DLL/EXE dependency tree and graph tool
License: MIT
Author: Vorga
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Dist: networkx (>=3.0)
Requires-Dist: pefile (>=2024.5.17)
Requires-Dist: pyvis (>=0.3.2)
Requires-Dist: tqdm (>=4.64.1)
Description-Content-Type: text/markdown

# win_depends

[![CI](https://github.com/qq768699531/win-depends/actions/workflows/ci.yml/badge.svg)](https://github.com/qq768699531/win-depends/actions/workflows/ci.yml)
[![PyPI version](https://img.shields.io/pypi/v/win-depends)](https://pypi.org/project/win-depends/)

Analyze Windows DLL/EXE dependencies, find missing DLLs and unresolved imports.

## Installation

```powershell
python -m pip install win_depends
```

## Usage

Pass a DLL, EXE, or directory and select the reports to generate:

```powershell
# Report missing dependencies for one executable
win_depends .\build\bin\MyApp.exe --missing

# Show a dependency tree and missing or invalid dependencies
win_depends .\build\bin\MyApp.exe --tree --missing --invalid

# Find local orphan DLLs and limit analysis depth
win_depends .\build\bin --orphan --tree -d 3

# Save the dependency graph
win_depends .\build\bin\MyApp.exe -o .\dependencies.html
```

Directory scans include only directly contained DLL/EXE files, not subdirectories.

## Options

| Option | Description |
| --- | --- |
| `--missing` | List dependencies that could not be resolved. |
| `--invalid` | List dependencies whose imported symbols could not be satisfied. |
| `--orphan` | List local DLLs that are not dependencies of another analyzed file. |
| `--tree` | Print the analyzed dependency tree. |
| `-d N`, `--depth N` | Limit graph construction depth. Entry points are depth 0; default: unlimited. |
| `-o FILE`, `--out FILE` | Save the graph as CSV, JSON, HTML, DOT or TXT, inferred from the file extension. |
| `--detect-system` | Traverse system DLLs as well as local dependencies. Off by default. |
| `-t N`, `--threads N` | Set the analysis thread count. Default: `16`. |
| `-V`, `--verbose` | Print additional diagnostic details. |
| `-v`, `--version` | Print the installed version. |
| `-h`, `--help` | Show command help. |

[Changelog](CHANGELOG.md) · [Release guide](RELEASE.md) · [Roadmap](ROADMAP.md)

