A safer pip that checks package health before installation.
Project description
safe-pip
safe-pip is a wrapper around the standard pip command that checks the health score of a package from Snyk Advisor before installation. It informs you about the package's health and asks for confirmation before proceeding.
Installation
Install safe-pip using pip:
pip install safe-pip
Usage
Use safe-pip just like you would use pip:
safe-pip install package_name
Replacing pip with safe-pip
If you want to replace the pip command with safe-pip, you can create an alias or a symbolic link.
Add the following line to your shell's configuration file (e.g., .bashrc, .zshrc):
alias pip='safe-pip'
Or, use this one-liner.
Zsh
echo "alias pip='safe-pip'" >> ~/.zshrc
source ~/.zshrc
Bash
echo "alias pip='safe-pip'" >> ~/.bashrc
source ~/.bashrc
Fish
alias -s pip "safe-pip"
Requirements
- Python 3.x
- The following Python packages (will be installed automatically):
requestscolorama
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
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
File details
Details for the file safe-pip-1.0.0.tar.gz.
File metadata
- Download URL: safe-pip-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42feb0368b265dbe43578113d73422f817b97df97678dc9bf0ec9ec0fa6b70ac
|
|
| MD5 |
393353655757258bd8416c647a24df78
|
|
| BLAKE2b-256 |
ba039284e06b592df73020ba96ab0f00e23053886a7a1795f4ba9bce0d98aacc
|