V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
huangyezhufeng
V2EX  ›  Python

MPPT: A Modern Python Package Template(一个现代的 Python 库模版)

  •  
  •   huangyezhufeng ·
    shenxiangzhuang · 59 天前 · 1014 次点击
    这是一个创建于 59 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/shenxiangzhuang/mppt

    总结了一些 Python 库构建的最佳实践,主要是依赖管理,代码规范,文档等相关的一些建议和好用的工具~欢迎大家分享其他好用的工具和相关规范!

    第 1 条附言  ·  59 天前
    文档内容更加全面: https://datahonor.com/mppt/
    4 条回复    2024-07-11 10:09:09 +08:00
    yb2313
        1
    yb2313  
       59 天前
    没有 ruff,不行
    huangyezhufeng
        2
    huangyezhufeng  
    OP
       59 天前
    @yb2313 https://datahonor.com/mppt/linter/#ruff-linter-formatter
    哈哈,Ruff 有的。逐渐在替代其他的工具了。
    uni
        3
    uni  
       58 天前
    要不要更新一下,poetry 换成 rye 那一套
    huangyezhufeng
        4
    huangyezhufeng  
    OP
       58 天前
    @uni https://datahonor.com/mppt/package/#alternatives
    现在是把 Rye 和 Uv 放在了 Alternatives ,之所以没有作为首选是感觉还不够成熟,个人使用起来很多功能还是不如 Poetry 方便。

    Rye 我也在项目中用过,还算比较好用,不过项目变动还是有点多,不太适合上生产环境。之前 Rye 也被 ASTRAL 接管过去, 作为 Uv 的支撑项目(ref: https://astral.sh/blog/uv)。所以后面大概率还是要从 Rye 迁移到 Uv ,所以目前是把 Uv 标记为 Recommended.

    个人还是比较看好 Uv 的,"Cargo for Python"的愿景真的有搞头。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2215 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 00:05 · PVG 08:05 · LAX 17:05 · JFK 20:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.