Ask HN:为 Python 语言服务器选择哪个开源许可证?
3 分•作者: davidhalter•9 个月前
我在 2012 年创建了 Jedi,2020 年开始着手 ZubanLS [0],旨在推进 Python 工具的发展。最初的想法是采用免费增值模式,让公司为大型代码库的使用付费。但随着 Ty 和 Pyrefly 的出现,这种方法并未奏效。尽管如此,该工具的大部分工作已经完成:
* 全套核心 LSP 功能(诊断、跳转、补全、重命名等)
* 类型检查速度比 Mypy 快 20–200 倍
* 通过了大部分官方一致性测试 [1],以及超过 95% 的 Mypy 相关测试
* 提供 Mypy 兼容模式和更类似于 Pyright 的模式
因此,我希望将该项目开源。但理想情况下,我仍然希望找到一种方式从中获得哪怕是微薄的收入,所以我正在考虑不同的许可选项。除了 MIT/GPL/AGPL 之外,还有哪些许可可能适合?就我个人而言,我倾向于放弃 MIT,因为它几乎没有盈利空间。你认为这是一种错误吗?目前我倾向于 AGPL。从你作为用户的角度来看,这会成为你采用的阻碍吗?
[0]: https://zubanls.com/
[1]: https://htmlpreview.github.io/?https://github.com/python/typing/blob/main/conformance/results/results.html
查看原文
Having created Jedi in 2012, I started ZubanLS [0] in 2020 to advance Python tooling. My initial idea was to use a freemium model where companies would pay for usage on large codebases. That approach didn't work out with the arrival of Ty and Pyrefly. That said, most of the work on the tool is already complete:<p>- Full set of core LSP features (Diagnostics, Goto, Completions, Rename, etc.)
- Type checking that's 20–200× faster than Mypy
- Passes most of the official conformance tests [1] and over 95% of Mypy's relevant tests
- Offers both a Mypy-compatible mode and a mode more similar to Pyright<p>Because of this, I'd like to open source the project. Ideally though, I'd still like to find a way to make at least a small living from it, so I'm considering different licensing options. Are there any licenses beyond MIT/GPL/AGPL that might make sense here? Personally, I'm leaning away from MIT since it leaves almost no room for monetization. Do you think that's a mistake? Right now I'm leaning toward AGPL. From your perspective as a user, would that be a blocker for adoption?<p>[0]: https://zubanls.com/
[1]: https://htmlpreview.github.io/?https://github.com/python/typing/blob/main/conformance/results/results.html