序言
github上有很多好项目,但是国内用户连github却非常的慢.每次都要用插件或者其他工具来解决. 这次自己做一个小工具,输入github原地址后,就可以自动替换为代理地址,方便大家更快速的下载. 速度太慢可以看下gitee仓库地址 github仓库
安装
pip install cit
# 代理安装路径
pip install -i https://mirrors.cloud.tencent.com/pypi/simple cit
主要功能与用法
主要功能
- change 将目标地址转换为加速后的地址
- clone 常见的git加速,最快10M/s,有时候慢一点
- sub git子模块加速,等同于git submodule add
- get 就是单纯的下载功能
示例用法
clone功能:等效于git clone <url>
cit clone <url>
# 示例
cit clone https://github.com/solider245/cit.git
如上图所示,输入一个数字,选择一个链接即可开始下载.默认使用0.
sub功能: 等效于git submodule add <url>
cit sub <url>
# 案例
cit sub https://github.com/solider245/cit.git
逻辑和git clone一样,这里就不放图了.
get功能: 等效于wget下载 get功能会根据你的输入,智能判定下载raw文件或者release文件 使用示例:
cit get <url>
# 案例
cit get https://github.com/cheat/cheat/archive/4.2.0.zip
- 下载raw文件
下载安装包.
如上图所示,因为是使用https下载,所以速度快点惊人,如果下载速度太慢可以选择别的地址.我目前测试下来,基本都能用.
其他功能
- [x ] 常用软件下载,类似python,go等下载
- [x ] 常用系统加速,类似ubuntu或者centos等加速
- [] 其他常用功能
欢迎询问或者给我邮箱发邮件.
Metadata
Release files for cit 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cit-0.4.2.tar.gz | 6.0 kB | Without provenance | Details for cit-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cit-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for cit-0.4.2-py3-none-any.whl |
Total release size: 13.7 kB
Release files / cit-0.4.2.tar.gz
| Download URL | cit-0.4.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9094ece689bac4fd5e90a262b455ba091f67968e17b08dbb8c988ddfbd0655d9
|
|
BLAKE2b-256 checksum How to use checksums |
30ffd08b84a5a0a8f8ae8f065e32685bdcea813ca1a5418719903b7606d3b915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.6 Linux/4.19.128-microsoft-standard
|
Release files / cit-0.4.2-py3-none-any.whl
| Download URL | cit-0.4.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea4b137ad12d4fcc2133b4456418ec8b10cc59c9dbbfebd918f5dc1e4d179eef
|
|
BLAKE2b-256 checksum How to use checksums |
753e721e25291f974d6fbc439fcdcf00c41d92bf2d2a1de588fda66cd33cde02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.6 Linux/4.19.128-microsoft-standard
|
Security for cit 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.