Manage mirror sources for common development tools
Project description
mirrorctl
用于管理主流开发工具镜像源的 CLI。
安装(本地)
pip install -e .
支持的工具
- pip
- npm
- pnpm
- yarn
- cargo
- gem
- go
- maven
- conda
用法
# 查看已支持工具及当前镜像
mirrorctl list
# 查看内置 provider(目前只有 official)
mirrorctl providers
# 设置镜像(自定义 URL)
mirrorctl set pip --url https://pypi.org/simple
mirrorctl set npm --url https://registry.npmjs.org/
# 查看当前镜像
mirrorctl current pip
# 重置为官方镜像
mirrorctl reset pip
# 一键设置清华 TUNA 镜像
mirrorctl tuna
# 批量设置某个 provider
mirrorctl set-all --provider tuna
说明
- mirrorctl 会修改对应工具的用户级配置文件(例如
~/.npmrc、~/.cargo/config.toml)。 - 如果你需要公司/校园镜像,请使用
--url指定对应地址。
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
mirrorctl-0.1.0.tar.gz
(6.7 kB
view details)
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 mirrorctl-0.1.0.tar.gz.
File metadata
- Download URL: mirrorctl-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f8b4f1a582b0339a8b5dca737953acec7a6f8c298c90d8630c7b0ced5cfe36f
|
|
| MD5 |
4d517bc7969a10b15580cc152247b062
|
|
| BLAKE2b-256 |
9b56e67728ca1c6f8ece9820bc6fc57b686938c56c2a4c8d4385433d65cfc7a0
|
File details
Details for the file mirrorctl-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mirrorctl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
475704e2878b191082cb99bb0b2b61de8ad53281006f10715168855dfc536d91
|
|
| MD5 |
80cc46dac2725764c523fd5851c9ba78
|
|
| BLAKE2b-256 |
4626b066faa714c0cbd7d53c73ebdee12dc3d5a794ddf66a7e779222f7c0251c
|