devpi 和 pypi 服务器的区别 [英] Difference between devpi and pypi server

查看:54
本文介绍了devpi 和 pypi 服务器的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有一个简单的问题,我习惯了 devpi,想知道 devpi 和 pypi 服务器之间有什么区别?

Had a quick question here, am used to devpi and was wondering what is the difference between devpi and pypi server ?

是否比另一个更好?这其中哪一个更胜一筹?

Is on better than another? Which of this one scale better?

干杯

推荐答案

PyPI(Python 包索引)- 是第三方 Python 软件包的官方存储库.每次使用时,例如pip 安装一个不符合标准的包,它将从 PyPI 服务器下载.

PyPI (Python Package Index)- is the official repository for third-party Python software packages. Every time you use e.g. pip to install a package that is not in the standard it will get downloaded from the PyPI server.

PyPI 上的所有包都是公开可见的.因此,如果您上传自己的软件包,那么任何人都可以开始使用它.很明显,您需要访问互联网才能使用它.

All of the packages that are on PyPI are publicly visible. So if you upload your own package then anybody can start using it. And obviously you need internet access in order to use it.

devpi(不确定首字母缩略词代表什么) - 是一个自托管的私有 Python 包服务器.此外,您可以使用它来测试和发布您自己的软件包.

devpi (not sure what the acronym stands for) - is a self hosted private Python Package server. Additionally you can use it for testing and releasing of your own packages.

自托管是您可能不想(或不能)与世界其他地方共享的专有工作的理想选择.

Being self hosted it's ideal for proprietary work that maybe you wouldn't want (or can't) share with the rest of the world.

devpi 提供的其他功能:

So other features that devpi offers:

  • PyPI 镜像 - 在本地缓存您从 PyPI 下载的任何包.这对 CI 系统来说非常好.如果软件包或服务器丢失,不必担心.即使无法访问互联网,您仍然可以使用它.
  • 多个索引 - 与 devpi 中的 PyPI(只有一个索引)不同,您可以创建多个索引.例如,main 索引用于坚如磐石的包和 development,您可以在其中发布仍在开发中的包.尽管您必须小心这一点,因为大量索引会使事情难以跟踪.
  • 服务器有一个简单的网络界面,您可以在其中搜索包.
  • 您可以将其与 pip 集成,以便您可以像使用 PyPI 一样使用本地 devpi 服务器.
  • PyPI mirror - cache locally any packages that you download form PyPI. This is excellent for CI systems. Don't have to worry if a package or server goes missing. You can even still use it if you don't have internet access.
  • multiple indexes - unlike PyPI (which has only one index) in devpi you can create multiple indexes. For example a main index for packages that are rock solid and development where you can release packages that are still under development. Although you have to be careful with this because a large amount of indexes can make things hard to track.
  • The server has a simple web interface where you can you and search for packages.
  • You can integrate it with pip so that you can use your local devpi server as if you were using PyPI.

所以回答你的问题:

  • 一个比另一个更好吗? - 这确实是两种不同的工具.这里没有明确的答案,这取决于您的需求.
  • 哪个扩展性更好? - 绝对是 devpi.
  • Is one better than the other? - well these are two different tools really. No clear answer here, depends on what your needs are.
  • Which scales better? - definitely devpi.

官网很有用,很好的例子:http://doc.devpi.net/latest/

The official website is very useful with good examples: http://doc.devpi.net/latest/

这篇关于devpi 和 pypi 服务器的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆