Metadata-Version: 2.4
Name: orphans
Version: 1.0.0
Summary: See every package installed on your machine and know which ones are safe to remove.
Project-URL: Homepage, https://github.com/ado11231/orphans
Project-URL: Repository, https://github.com/ado11231/orphans
Project-URL: Issues, https://github.com/ado11231/orphans/issues
Author: Adnan Alagic
License: MIT License
        
        Copyright (c) 2026 adnan
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: auditor,cargo,cleanup,homebrew,npm,orphan,package-manager,pip
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: System :: Installation/Setup
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: httpx<1.0,>=0.27
Requires-Dist: packaging>=20.0
Requires-Dist: pipdeptree<3.0,>=2.0
Requires-Dist: rich<14.0,>=13.0
Description-Content-Type: text/markdown

<h3 align="center">orphans</h3>

<p align="center">
  <a href="https://pypi.org/project/orphans/"><img src="docs/badges/pypi.svg" alt="PyPI version"></a>
  <a href="https://www.python.org/downloads/"><img src="docs/badges/python.svg" alt="Python versions"></a>
  <a href="LICENSE"><img src="docs/badges/license.svg" alt="License"></a>
</p>

<p align="center">
  <img src="docs/demo.png" alt="orphans screenshot" width="600">
</p>

<p align="center"><b>See every package on your machine and know which ones you can remove.</b></p>

<p align="center">
  <b>orphans</b> looks at every package installed on your computer. It tells you
  which ones are safe to remove. It never removes anything without asking you first.
</p>

<h3 align="center">Supported Package Managers</h3>

<p align="center">
  <a href="https://pip.pypa.io"><img src="docs/badges/pip.svg" alt="pip"></a>
  <a href="https://www.npmjs.com"><img src="docs/badges/npm.svg" alt="npm"></a>
  <a href="https://doc.rust-lang.org/cargo"><img src="docs/badges/cargo.svg" alt="cargo"></a>
  <a href="https://brew.sh"><img src="docs/badges/homebrew.svg" alt="Homebrew"></a>
</p>

## Installation

Python 3.11 or newer required. Install orphans with pipx.

```bash
pipx install orphans
```

Can be installed from source code.

```bash
git clone https://github.com/ado11231/orphans
cd orphans
pip install .
```

Check Installation.

```bash
orphans --version
```

## Usage

Run orphans to scan your machine.

```bash
orphans
```


| Flag | What it does |
| --- | --- |
| `orphans --cleanup` | Removes orphan packages |
| `orphans --cleanup --dry-run` | Shows what would be removed |
| `orphans --repair` | Updates old packages |
| `orphans --export results.json` | Saves results to a file |
| `orphans --format json` | Prints results as json |
| `orphans --snapshot` | Saves the current state |
| `orphans --rollback <snapshot>` | Restores a saved state |
| `orphans --watch` | Scans again every minute |
| `orphans --version` | Shows the version |

## License

MIT, see [LICENSE](LICENSE).