Metadata-Version: 2.1
Name: pypi-proxy
Version: 0.0.1
Summary: Pypi本地缓存代理
Home-page: https://github.com/cube-ai/pypi-proxy.git
Author: cubeai
Author-email: cubeai@163.com
License: Apache License 2.0
Keywords: pypi proxy
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: tornado (==6.0.4)
Requires-Dist: requests (==2.24.0)

# pypi-proxy

Pypi本地源。当本地未找到时，从国内pypi镜像网站（目前使用阿里云pypi镜像）拉取并缓存于本地，下次再访问时直接从本地获取。

## docker镜像制作

        sh build-docker.sh

## 拉起pypi-proxy服务

        docker-compose up

默认将7979端口映射到宿主机上进行监听，缓存包文件挂载在宿主机的~/mypypi。可以通过修改docker-compose.yml文件来改变映射至宿主机的端口号，以及缓存文件的挂载位置。


## 访问

假定pypi-proxy服务运行于域名/IP地址为<hostname>的主机的7979端口上，通过执行以下命令来安装<package>包：

        pip3 install -i http://<hostname>:7979/pypi/simple/ --trusted-host <hostname>:7979 <package>



