Metadata-Version: 2.5
Name: venvtree
Version: 0.2.0
Summary: Show the dependency tree of the packages in a project's .venv.
Project-URL: Repository, https://github.com/mhrsavci/venvtree
Project-URL: Issues, https://github.com/mhrsavci/venvtree/issues
Author: svcmahir
License-Expression: MIT
License-File: LICENSE
Keywords: dependencies,tree,venv
Requires-Python: >=3.10
Requires-Dist: packaging>=22
Description-Content-Type: text/markdown

# venvtree

Looks at a project's `.venv` folder and shows which package was installed because of which other package, as a tree.

## Installation

```bash
pip install venvtree
```

Install it in any environment; it inspects the `.venv` of the project you run it in.

## Usage

```bash
venvtree                         # the .venv in the current folder (or a parent)
venvtree jinja2                  # one package: its dependencies and what requires it
venvtree --path path/to/project  # another project
```

```python
from venvtree import VenvTree

tree = VenvTree()            # scans .venv on creation
print(tree)                  # prints the tree
tree.roots                   # top-level packages
tree.requires("flask")       # what does flask require?
tree.required_by("click")    # who requires click?
tree.render_package("click") # both directions, as text
```
