Skip to content

BaseMax/pyenv-inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyenv-inspector

pyenv-inspector is a Python tool for inspecting and visualizing Python environments. It provides a command-line interface (CLI) to gather useful information about your Python setup, list installed packages, visualize the dependency tree, search for specific packages, and export package information in multiple formats.

Features

  • Display Python environment information (Python version, executable, platform, virtual environment status, etc.)
  • List installed packages with versions
  • Show the dependency tree of installed packages
  • Search for a package by name
  • Export package list in JSON or requirements.txt format

Installation

You can install the required dependencies using pip:

pip install rich pipdeptree

Usage

1. Show Python environment information

pyenv-inspector info

Displays information about the current Python environment, including the Python executable, version, platform, virtual environment, and site-packages.

2. List installed packages

pyenv-inspector list

Lists all installed packages and their versions. You can also output the result as JSON:

pyenv-inspector list --json

3. Show the dependency tree

pyenv-inspector tree

Shows a visual representation of the dependency tree for installed packages. Output can also be in JSON format:

pyenv-inspector tree --json

4. Search for a package

pyenv-inspector search <package-name>

Searches for a specific package by name and displays the results.

5. Export the package list

pyenv-inspector export --format json --output <file-path>

Exports the installed packages list in JSON format.

pyenv-inspector export --format requirements --output <file-path>

Exports the installed packages list in requirements.txt format.

License

MIT License

Source Code

© Copyright 2025, Max Base

About

A tool to visualize and debug Python virtual environments, packages, and dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages