跳转至

zerodep

PyPI GitHub Release License: MIT Python CI Benchmarks Docs arXiv

零依赖、单文件的 Python 常用库实现 —— 仅使用标准库,性能对标主流库,支持 Python 3.10+。

概述

每个模块都是一个独立的单文件,可以直接复制到你的项目中使用,无需 pip install

设计理念

  • 零外部依赖 —— 仅使用 Python 标准库
  • 单文件 —— 复制一个 .py 文件到你的项目即可
  • Python 3.10+ —— 利用现代 Python 特性
  • 正确性优先 —— 与参考库进行 apple-to-apple 测试
  • 性能对等 —— 与流行替代方案进行基准测试(在线面板

引用

如果您在研究中使用了 zerodep,请引用我们的论文:

@article{ding2026stdlib,
  title={Stdlib or Third-Party? Empirical Performance and Correctness of LLM-Assisted Zero-Dependency Python Libraries},
  author={Ding, Peng and Stevens, Rick},
  journal={arXiv preprint arXiv:2605.21405},
  year={2026}
}