semvec/pypi-packages huggingface dataset:
pip-why 0.1.0.2
Discover why a package is installed in your Python environment
License: MIT
Requires Python: >=3.9
Keywords: pip, dependencies, package, management, tools

# pip-why

> Discover why a package is installed in your Python environment

`pip-why` is a simple command-line tool that answers one question: **"Why is this package installed?"**

It analyzes your currently installed packages and traces the dependency chain to show you which packages require the one you're asking about.

## Why pip-why?

Ever wondered why you have dozens of packages installed in your environment? `pip-why` helps you understand:

- Which top-level packages brought in a specific dependency
- The full dependency chain from your projects to deep dependencies
- Whether a package was installed directly or as a dependency

## How It Works

`pip-why` uses only local metadata from your Python environment. It:

1. Reads installed package metadata using `importlib.metadata`
2. Builds a complete dependency graph
3. Traces backwards from your target package to find all "root" packages
4. Displays the dependency tree clearly

**No internet required. No guessing. Just facts from your environment.**

## Installation

```bash
pip install pip-why
```

## Usage

```bash
pip-why <package-name>
```

### Examples

**Check why numpy is installed:**

```bash
pip-why numpy
```

Output:

```
numpy is installed because:

your-project
 ├─ pandas
 │   └─ numpy
 └─ scikit-learn
     └─ numpy
```

**Check a top-level package:**

```bash
pip-why requests
```

Output:

```
requests is a top-level dependency.
It was installed directly.
```

**Check an uninstalled package:**

```bash
pip-why nonexistent-package
```

Output:

```
❌ Package 'nonexistent-package' is not installed in this environment.
```

## Features

✅ Works entirely offline with local metadata  
✅ Handles multiple dependency paths  
✅ Detects circular dependencies safely  
✅ Case-insensitive package name matching  
✅ Clear, tree-structured output  
✅ Fast and lightweight

## Limitations

- Only shows dependencies from installed packages (no PyPI lookups)
- Does not predict what _would_ be installed
- Best-effort for editable installs
- Shows `Requires-Dist` metadata as recorded during installation

## Requirements

- Python ≥ 3.9

## License

MIT License - see LICENSE file for details

## Contributing

This is a focused tool that does one thing well. Contributions that maintain its simplicity and correctness are welcome.

## Author

Built with care for Python developers who want to understand their environments.
leftmagic-time 0.1.0
MCP server that provides current time
License: MIT
Requires Python: >=3.8

# LeftMagic Time MCP Server

A Model Context Protocol (MCP) server that provides current time functionality.

## Installation

```bash
pip install leftmagic-time
```

## Usage

Run as MCP server:
```bash
leftmagic-time
```

## Tools

- `get_current_time`: Returns the current server time in ISO format

## License

MIT