pypi-proxy
Pypi本地代理。当本地未找到时,从国内pypi镜像网站(目前使用豆瓣pypi镜像)拉取并缓存于本地,下次再访问时直接从本地获取。
docker镜像制作
sh build-docker.sh
拉起pypi-proxy服务
docker-compose up
默认将7979端口映射到宿主机上进行监听,缓存包文件挂载在宿主机的~/mypypi。可以通过修改docker-compose.yml文件来改变映射至宿主机的端口号,以及缓存文件的挂载位置。
访问
假定pypi-proxy服务运行于域名/IP地址为的主机的7979端口上,通过执行以下命令来安装包:
pip3 install -i http://<hostname>:7979/pypi/simple/ --trusted-host <hostname> <package-name>[==<版本号>] --timeout 1200
注:对于文件体积较大的包,建议在pip命令后面加上--timeout参数,将timeout设为一个比正常下载时间更大的值。
Metadata
Release files for pypi-proxy 0.0.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 | |
|---|---|---|---|---|
| pypi-proxy-0.0.2.tar.gz | 2.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypi_proxy-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / pypi-proxy-0.0.2.tar.gz
| Download URL | pypi-proxy-0.0.2.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
254dbda832d7013b4c39606dd9b75a68a6f90c99f92ab010aa55288289c36cf5
|
|
BLAKE2b-256 checksum How to use checksums |
88931259a290743eae73b0f901d233bc2484f0cb7843dce99b2a036c3e897d44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.5.2
|
Release files / pypi_proxy-0.0.2-py3-none-any.whl
| Download URL | pypi_proxy-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1f9dbbeb28795dff4b67e935d6d3919474fc98b5d3642a83f153e6327f0e351
|
|
BLAKE2b-256 checksum How to use checksums |
2c7fc3b9bcfee19b3d34d973d6e7d7097085064fff633b12a2b9f862721e2813
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.5.2
|
Security for pypi-proxy 0.0.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.