{"id":34082063,"url":"https://github.com/harmonsir/pip-fc","last_synced_at":"2026-04-09T04:03:00.679Z","repository":{"id":321422281,"uuid":"1085726970","full_name":"harmonsir/pip-fc","owner":"harmonsir","description":"纯Python无依赖，帮助用户快速选择最佳镜像源，支持 Python \u003e=2.7 \u0026 3.x 。https://pypi.org/project/pip-fc/","archived":false,"fork":false,"pushed_at":"2026-01-10T05:58:44.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T01:44:33.245Z","etag":null,"topics":["pip"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harmonsir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-29T12:38:23.000Z","updated_at":"2026-01-10T05:58:48.000Z","dependencies_parsed_at":"2025-10-29T16:16:36.258Z","dependency_job_id":"8cc006fe-eebd-4f5d-8c4d-8cc81c10ef18","html_url":"https://github.com/harmonsir/pip-fc","commit_stats":null,"previous_names":["harmonsir/pip-fc"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/harmonsir/pip-fc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonsir%2Fpip-fc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonsir%2Fpip-fc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonsir%2Fpip-fc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonsir%2Fpip-fc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harmonsir","download_url":"https://codeload.github.com/harmonsir/pip-fc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonsir%2Fpip-fc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31584820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pip"],"created_at":"2025-12-14T12:03:45.186Z","updated_at":"2026-04-09T04:03:00.669Z","avatar_url":"https://github.com/harmonsir.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pip-fc\n\n\u003e pip-fc 全称是：pip fast check\n\n`pip-fc` 是一个轻量级的 Python 工具，旨在测试多个镜像源的连接速度，并帮助用户选择最快的镜像源进行软件包安装。支持 Python 2.7 和 3.x 版本，能够自动根据环境选择适合的并发模式（`asyncio` 或 `threading`）。\n\n---\n\n## 功能\n\n- 测试多个镜像源的连接速度。\n  - v0.1.12: 丢弃了部分过时的mirror，使用**文件实际下载速度**进行测速\n- 自动选择连接速度最快的镜像源。\n- 支持 Python 2.7 和 3.x 版本。\n- 使用异步（`asyncio`）或线程池（`threading`）来提高测试效率。\n- 简单易用的命令行界面。\n\n## 安装\n\n### 使用 `pip` 安装：\n\n```bash\npip install pip-fc\n```\n\n## 使用方法\n\n通过运行以下命令启动：\n\n`pip-fc` 或者 `python -m pip_fc`\n\n此命令将会测试预设的镜像源，并显示连接速度最快的镜像源。你也可以自定义镜像源进行测试。\n\n### 设置全局镜像源\n\n如果你希望将测试中找到的最快镜像源设置为全局 `pip` 镜像源，可以在运行完成后输入 `y` 来确认：\n\n```bash\nDo you want to set the fastest mirror as the global pip mirror? (y/n): y\n```\n\n此操作将更新 `pip` 的配置文件，设置全局镜像源和回退镜像源。\n\n## 依赖\n\n* `pip`：用于安装和管理 Python 包。\n* `futures`：仅在 Python 2.7 环境下需要，安装时自动处理。\n\n## 示例输出 v2\n\n```\nDetected Python Version: 3.12.12 (asyncio)\n========================================\n--- Starting HTTP download (v2) for speedtest (4096 bytes, 3 times average) ---\n\nMirror HTTP Download Test Results (sorted by speed):\n----------------------------------------\nSpeed (KB/s)    URL                                                         \n----------------------------------------\n27.53           https://mirrors.cloud.tencent.com/pypi/simple/\n26.83           https://mirrors.ustc.edu.cn/pypi/simple/\n16.45           https://pypi.tuna.tsinghua.edu.cn/simple/\n16.39           https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/\n2.33            https://repo.huaweicloud.com/repository/pypi/simple/\n0.51            https://mirrors.aliyun.com/pypi/simple/\n----------------------------------------\n\n*** Fastest mirror is: https://mirrors.cloud.tencent.com/pypi/simple/ (speed: 27.53 KB/s)\n\n= = = = = = = = = = = = = = = = = = = = \n\nDo you want to set the fastest mirror as the global pip mirror? (y/n): \n\nTimeout reached! No input received.\nSkipping mirror setup.\n```\n\n## 示例输出 v1\n\n```\nDetected Python Version: 3.8.5 (asyncio)\n--- Starting connection speed test using asyncio mode ---\nSuccessfully tested 6 mirrors.\nFastest Mirror: https://pypi.tuna.tsinghua.edu.cn/simple/\nLatency: 50.12345 ms\n\n--- All Successful Connection Results (URL, Latency in ms) ---\n  https://pypi.tuna.tsinghua.edu.cn/simple/: 50.12345 ms\n  https://mirrors.aliyun.com/pypi/simple/: 65.67890 ms\n  ...\n```\n\n## 贡献\n\n欢迎提出问题、提交 bug 或者贡献代码。如果你有任何问题，或者希望添加新特性，请提交 [issue](https://github.com/harmonsir/pip-fc/issues)。\n\n## 许可\n\n该项目采用 MIT 许可证，详情请见 [LICENSE](LICENSE) 文件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmonsir%2Fpip-fc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharmonsir%2Fpip-fc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmonsir%2Fpip-fc/lists"}