Python Registry Provider - A tool for managing Python package index sources.
Project description
PRP - Python Registry Provider (Python包索引提供商)
目录 (Table of Contents)
PRP (Python Registry Provider) 是一个用于管理Python包索引源的命令行工具,类似于npm的nrm。它允许您轻松切换不同的Python包索引,如PyPI、TUNA、阿里云等。
PRP (Python Registry Provider) is a command-line tool for managing Python package index sources, similar to nrm for npm. It allows you to easily switch between different Python package indexes such as PyPI, TUNA, Aliyun, and more.
功能 (Features)
- 列出所有可用包索引源 (List all available package index sources)
- 一键切换包索引源 (Switch between package index sources with a single command)
- 支持多源切换 (Support switching to multiple sources simultaneously)
- 添加自定义包索引源 (Add custom package index sources)
- 支持批量添加多个包索引源 (Support adding multiple package index sources at once)
- 删除包索引源 (Remove package index sources)
- 支持批量删除多个包索引源 (Support removing multiple package index sources at once)
- 恢复默认配置 (Restore to default configuration)
- 测试包索引源速度 (Test package index source speeds)
- 查看当前包索引源 (View current package index source)
安装 (Installation)
pip install xiaobai-prp
使用方法 (Usage)
列出所有包索引源 (List all package index sources)
prp ls
切换单个包索引源 (Switch to a single package index source)
prp use tuna
切换多个包索引源 (Switch to multiple package index sources)
# 第一个作为主源,后续作为额外源
prp use aliyun tuna pypi
添加自定义包索引源 (Add a custom package index source)
prp add myregistry https://myregistry.example.com/simple/
批量添加多个包索引源 (Add multiple package index sources at once)
# 支持添加多个源,格式为: name1 url1 [home1] name2 url2 [home2]
prp add myregistry1 https://myregistry1.example.com/simple/ myregistry2 https://myregistry2.example.com/simple/
添加带主页的包索引源 (Add package index source with homepage)
prp add myregistry https://myregistry.example.com/simple/ https://myregistry.example.com
批量添加带主页的多个包索引源 (Add multiple package index sources with homepages)
prp add myregistry1 https://myregistry1.example.com/simple/ https://myregistry1.example.com myregistry2 https://myregistry2.example.com/simple/ https://myregistry2.example.com
删除包索引源 (Delete a package index source)
prp del myregistry
批量删除多个包索引源 (Delete multiple package index sources at once)
prp del myregistry1 myregistry2
恢复默认配置 (Restore to default configuration)
prp reset
测试包索引源速度 (Test package index source speeds)
# 测试所有源的速度
prp test
# 测试特定源的速度
prp test tuna
显示当前包索引源 (Show current package index source)
prp current
显示版本信息 (Show version information)
prp version
可用索引源 (Available Registries)
- pypi - 官方PyPI仓库 (Official PyPI repository)
- pypi-test - PyPI测试仓库 (PyPI test repository)
- tuna - 清华大学镜像 (Tsinghua University mirror)
- aliyun - 阿里云镜像 (Alibaba Cloud mirror)
- douban - 豆瓣镜像 (Douban mirror)
- huawei - 华为云镜像 (Huawei Cloud mirror)
- ustc - 中国科学技术大学镜像 (University of Science and Technology of China mirror)
贡献 (Contributing)
欢迎贡献!请随时提交Pull Request。 Contributions are welcome! Please feel free to submit a Pull Request.
许可证 (License)
本项目采用GPLv3许可证 - 详见LICENSE文件。 This project is licensed under the GNU General Public License v3 (GPLv3) License - see the LICENSE file for details.
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 xiaobai_prp-1.0.13.tar.gz.
File metadata
- Download URL: xiaobai_prp-1.0.13.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89bd1a9c8e41e890e9519740f942f191e60109b66656a8ff0bc075df3a7d6f36
|
|
| MD5 |
785f4004b8b356f2954e444f32865ca7
|
|
| BLAKE2b-256 |
532b06c3ce4f467d540cf51ec9d2e67d8f090facf090af40a3bc474434f70a8c
|
File details
Details for the file xiaobai_prp-1.0.13-py3-none-any.whl.
File metadata
- Download URL: xiaobai_prp-1.0.13-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e175b182d63d96ba9dd293fb5771575575717f725be2d05cb25a060212900e2a
|
|
| MD5 |
da725ba1c1d1fa8ebb49ca88f73f9b09
|
|
| BLAKE2b-256 |
f59af081e8b5b634b1ecdefc0a3c3f5e40e0c23952be7e1bc5717ddd28cff4ed
|