Remove a package and its unused dependencies
Reason this release was yanked:
Scrapped
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file only_pip3_autoremove-0.1.1.tar.gz.
File metadata
- Download URL: only_pip3_autoremove-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5354a4111832026475a0a740e40b8b73c1044e8cb029417d8320324a5e3bb5f
|
|
| MD5 |
2f2df784fa73743b7c0127654cc058cb
|
|
| BLAKE2b-256 |
5d8d7805aa2493803e1ed6cce17409b64b2fc89157afc2143bfbd934a7a48d96
|
File details
Details for the file only_pip3_autoremove-0.1.1-py3-none-any.whl.
File metadata
- Download URL: only_pip3_autoremove-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e78cfdf5decc764c9cbe57b6e021cd625a48dcde80ca91fc5efe45998eeaf10
|
|
| MD5 |
00ad5245a231c07898e319ad6c0a2747
|
|
| BLAKE2b-256 |
24a8be22ee0a66017a5097b337e177c5e5f3b228c6147411d4bf6623ea9661c5
|