English documentation: README.md
中文文档: README-zh.md
ppmm is a command-line tool for managing Python package manager (pip) mirrors. It allows you to easily list、switch、 test pip mirrors, as well as add、 edit、delete、and rename mirrors.
- Use
mm ls
to list available mirrors - Use
mm use <name>
to switch mirrors - Use
mm test
to test the response time of mirrors - Use
mm current
to display the currently used mirror - Use
mm add <name> <URL>
to add a new mirror - Use
mm edit <name> <URL>
to modify a specified mirror - Use
mm rm <name>
to delete a specified mirror - Use
mm rename <old name> <new name>
to rename a mirror - Use
mm help
to display help information
You can install ppmm using pip:
pip install ppmm
List all available mirrors:
mm ls
Switch to a specific mirror, for example,Alibaba Cloud:
mm use ali
Test the response time of all mirrors:
mm test
Check the currently used mirror:
mm current
Add a new mirror:
mm add <name> <URL>
Edit the URL of a mirror:
mm edit <name> <URL>
Delete an existing mirror:
mm rm <name>
Rename a mirror:
mm rename <old name> <new name>
Display help information:
mm help
Contributions are welcome! Please raise issues or submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.