Skip to content

safe-pip is a wrapper around the standard pip command that checks the health score of a package from Snyk Advisor before installation

License

Notifications You must be signed in to change notification settings

gkpln3/safe-pip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Example

Screenshot 2024-12-03 at 22 46 35

Installation

Install safe-pip using pip:

pip3 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.

Use this one-liner to add the following line to your shell's configuration file (e.g., .bashrc, .zshrc):

Zsh

echo "alias pip3='safe-pip'" >> ~/.zshrc
source ~/.zshrc

Bash

echo "alias pip3='safe-pip'" >> ~/.bashrc
source ~/.bashrc

Fish

alias -s pip3 "safe-pip"

The original pip could still be used by running:

python3 -m pip

Requirements

  • Python 3.x
  • The following Python packages (will be installed automatically):
    • requests
    • colorama

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

About

safe-pip is a wrapper around the standard pip command that checks the health score of a package from Snyk Advisor before installation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages