Metadata-Version: 2.4
Name: pip-uv
Version: 0.1.8
Summary: Forces 'pip' commands to run via 'uv pip' transparently.
Author-email: Your Name <your.email@example.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/guysoft/uv-pip-shim
Classifier: Programming Language :: Go
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# pip-uv 🚀

**Tired of forgetting to type `uv pip install`?** 

You know `uv` is faster, better, and stronger, but muscle memory is hard to break. You keep typing `pip install` and waiting... and waiting.

**`pip-uv` is here to save you.**

This package replaces your environment's `pip` command with a lightning-fast shim that automatically redirects everything to `uv pip`. 

Type `pip`, get `uv`. It's that simple.

## Quick Start

Run this **once** in your virtual environment:

```bash
uv pip install pip-uv
```

*(Or just `pip install pip-uv` if you haven't switched yet)*

That's it! Now try it out:

```bash
pip install requests
# 🎉 Actually runs: uv pip install requests
```

## ✨ Smart Features

**Auto-switch to `uv add`**: 
If you are in a project managed by `uv` (with a `uv.lock`), `pip-uv` is smart enough to detect it. 

If you run:
```bash
pip install requests
```
It will automatically switch to:
```bash
uv add requests
```
...ensuring your `pyproject.toml` stays in sync! (Only triggers for simple installs without flags).

## How it works

When you install `pip-uv`, it places a small, optimized binary named `pip` into your virtual environment's `bin` folder. This binary shadows the standard python `pip`.

1.  You type `pip install ...`
2.  The shim intercepts the call.
3.  It checks if you are in a `uv` project.
4.  It instantly replaces itself with `uv pip install ...` (or `uv add ...`).
5.  You enjoy pure speed.

## Features

*   **Zero Overhead**: Written in Go, the shim uses `syscall.Exec` to replace the process. No python startup cost.
*   **Transparent**: Passes all arguments and flags directly to `uv`.
*   **Pre-compiled**: Installs instantly on Linux, macOS, and Windows.

## Prerequisites

*   [**uv**](https://github.com/astral-sh/uv) must be installed and available in your system `PATH`.

## License

MIT
