随着AI产业的不断发展,算法工程师以及研发工程师需要大量的python第三方包来构建AI场景下的算法模型以及程序,那么为了给企业内部提供统一的内部python源,通常需要借助其他第三方工具来同步源。
使用指南
$ docker run -itd -p 80:80 -e "TIMESLEEP=600" -v /data/repos/pypi/:/export/Data/ xxbandy123/bandersnatch:2.1.0
$ tree -L 2 .
.
├── generation
├── todo
└── web
├── local-stats
├── packages
└── simple
$ curl localhost:8080
<html>
<head><title>Index of /</title></head>
<body bgcolor="white">
<h1>Index of /</h1><hr><pre><a href="../">../</a>
<a href="local-stats/">local-stats/</a> 28-Apr-2018 10:32 -
<a href="packages/">packages/</a> 28-Apr-2018 10:33 -
<a href="simple/">simple/</a> 28-Apr-2018 10:33 -
</pre><hr></body>
</html>
$ curl localhost:8080/simple/
<html>
<head><title>Index of /simple/</title></head>
<body bgcolor="white">
<h1>Index of /simple/</h1><hr><pre><a href="../">../</a>
<a href="0/">0/</a> 28-Apr-2018 10:32 -
<a href="0-.-.-.-.-.-.-.-.-.-.-.-.-0/">0-.-.-.-.-.-.-.-.-.-.-.-.-0/</a> 28-Apr-2018 10:32 -
<a href="0-._.-._.-._.-._.-._.-._.-0/">0-._.-._.-._.-._.-._.-._.-0/</a> 28-Apr-2018 10:32 -
<a href="0-0/">0-0/</a> 28-Apr-2018 10:32 -
<a href="0-0-1/">0-0-1/</a>
# 使用私有源
$ pip install -i http://localhost:8080/simple/ requests
Requirement already satisfied: requests in /usr/lib/python2.7/site-packages
网友评论