Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Scrapped

only-pip3-autoremove

Remove a package and its unused dependencies.

This is a fork of https://github.com/invl/pip-autoremove to port it to Python 3. To be clear, this is designed to only work with Python 3, and pip3 by extension.

Quickstart

First install only-pip3-autoremove

$ pip3 install only-pip3-autoremove

To install using Git:

$ pip3 install git+https://github.com/JohnDevlopment/pip-autoremove.git

Install a package which has dependencies, e.g. Flask

$ pip3 install Flask
...
Successfully installed Flask Jinja2 MarkupSafe Werkzeug blinker click itsdangerous

Uninstall it and all its unused dependencies

$ pip3-autoremove Flask -y
Flask 2.3.2 (/tmp/pip-autoremove/test/.env/lib/python3.10/site-packages)
    itsdangerous 2.1.2 (/tmp/pip-autoremove/test/.env/lib/python3.10/site-packages)
    blinker 1.6.2 (/tmp/pip-autoremove/test/.env/lib/python3.10/site-packages)
    Jinja2 3.1.2 (/tmp/pip-autoremove/test/.env/lib/python3.10/site-packages)
        MarkupSafe 2.1.3 (/tmp/pip-autoremove/test/.env/lib/python3.10/site-packages)
    click 8.1.6 (/tmp/pip-autoremove/test/.env/lib/python3.10/site-packages)
    Werkzeug 2.3.6 (/tmp/pip-autoremove/test/.env/lib/python3.10/site-packages)
...
Found existing installation: Flask 2.3.2
Uninstalling Flask-2.3.2:
  Successfully uninstalled Flask-2.3.2
...

Usage

usage: pip3-autoremove [-h] [-L | -f] [-l] [ARG ...]

positional arguments:
  ARG           a Python package

options:
  -h, --help    show this help message and exit
  -L, --leaves  list leaves (packages that are not used by any others)
  -f, --freeze  list leaves (packages that are not used by any others) in requirements.txt format
  -l, --list    list unused dependencies, but don't uninstall them

Installation

$ pip3 install only-pip3-autoremove
$ pip3 install git+https://github.com/JohnDevlopment/pip-autoremove.git

Metadata

Release files for only-pip3-autoremove 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for only-pip3-autoremove 0.1.1
File Size Uploaded
only_pip3_autoremove-0.1.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for only-pip3-autoremove 0.1.1
File Interpreter ABI Platform
only_pip3_autoremove-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / only_pip3_autoremove-0.1.1.tar.gz

Download URL only_pip3_autoremove-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b5354a4111832026475a0a740e40b8b73c1044e8cb029417d8320324a5e3bb5f
BLAKE2b-256 checksum
How to use checksums
5d8d7805aa2493803e1ed6cce17409b64b2fc89157afc2143bfbd934a7a48d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / only_pip3_autoremove-0.1.1-py3-none-any.whl

Download URL only_pip3_autoremove-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e78cfdf5decc764c9cbe57b6e021cd625a48dcde80ca91fc5efe45998eeaf10
BLAKE2b-256 checksum
How to use checksums
24a8be22ee0a66017a5097b337e177c5e5f3b228c6147411d4bf6623ea9661c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page