arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.11073cs.SEcs.CYphysics.soc-ph
收藏

Python包索引(PyPI)的实证分析

An Empirical Analysis of the Python Package Index (PyPI)

Ethan Bommarito, Michael Bommarito

摘要:

在这项研究中,我们提供了Python包存储库PyPI的全面经验总结,包括包元数据和源代码,涵盖178,592个包,1,745,744个版本,76,997个贡献者和156,816,750个导入语句。我们提供软件包、版本、依赖项、类别分类、许可证和软件包导入以及作者、维护者和组织的计数和趋势。作为最大和最古老的软件存储库之一,PyPI不仅提供了对当今Python生态系统的洞察,还提供了随着时间的推移软件开发和许可的趋势。在PyPI中,我们发现存储库的增长在所有措施下都是强劲的,在过去15年中,活跃软件包的复合年增长率为47%,新作者为39%,新导入语句为61%。与许多类似的社会系统一样,我们发现了一些高度右偏的分布,包括每个软件包的发布分布,每个作者的软件包和发布,每个软件包的导入,以及每个软件包和发布的大小。然而,我们也发现大多数软件包是由单个人贡献的,而不是多个人或组织。本文中的数据、方法和计算为PyPI的公开讨论提供了一个锚点,并为Python软件生态系统的未来研究奠定了基础。

英文摘要:

In this research, we provide a comprehensive empirical summary of the Python Package Repository, PyPI, including both package metadata and source code covering 178,592 packages, 1,745,744 releases, 76,997 contributors, and 156,816,750 import statements. We provide counts and trends for packages, releases, dependencies, category classifications, licenses, and package imports, as well as authors, maintainers, and organizations. As one of the largest and oldest software repositories as of publication, PyPI provides insight not just into the Python ecosystem today, but also trends in software development and licensing more broadly over time. Within PyPI, we find that the growth of the repository has been robust under all measures, with a compound annual growth rate of 47% for active packages, 39% for new authors, and 61% for new import statements over the last 15 years. As with many similar social systems, we find a number of highly right-skewed distributions, including the distribution of releases per package, packages and releases per author, imports per package, and size per package and release. However, we also find that most packages are contributed by single individuals, not multiple individuals or organizations. The data, methods, and calculations herein provide an anchor for public discourse on PyPI and serve as a foundation for future research on the Python software ecosystem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑