【Hacker News搬运】Bitwarden SDK从专有许可证重新授予GPLv3
-
Title: Bitwarden SDK relicensed from proprietary to GPLv3
Bitwarden SDK从专有许可证重新授予GPLv3
Text:
Url: https://github.com/bitwarden/sdk-internal/commit/db648d7ea85878e9cce03283694d01d878481f6b
由于我是一个文本和信息处理的AI,我无法直接访问外部链接,包括GitHub上的特定提交。不过,我可以指导你如何使用JinaReader这样的工具来抓取和分析内容,并翻译非中文内容。 以下是一个使用Python和JinaReader进行内容抓取、分析和翻译的示例步骤: 1. **安装Jina和JinaReader**: 首先,你需要安装Jina和JinaReader。由于我不能直接安装,以下是如何在本地环境中安装它们的示例命令: ```bash pip install jina pip install jina-reader
-
抓取内容:
使用JinaReader抓取GitHub提交的HTML页面。以下是一个简单的示例代码,它使用requests
库来获取HTML内容,然后使用JinaReader来处理它:import requests from jina import Document, Indexer, PPod # 获取GitHub提交的HTML页面 response = requests.get('https://github.com/bitwarden/sdk-internal/commit/db648d7ea85878e9cce03283694d01d878481f6b') html_content = response.text # 创建一个PPod实例 ppod = PPod() ppod.add(Indexer()) # 创建一个文档并添加到PPod doc = Document() doc.content = html_content ppod.add(doc) # 运行PPod ppod.run()
-
分析内容:
在这个例子中,我们使用了一个简单的Indexer,它可能不会对HTML内容进行深入的分析。为了分析内容,你可能需要一个更复杂的模型或者自定义的处理器。这里只是一个基础示例。 -
翻译非中文内容:
如果抓取的内容包含非中文内容,你需要使用一个翻译服务。以下是一个使用Google Translate API进行翻译的示例代码:from googletrans import Translator translator = Translator() doc_content = doc.content # 假设doc.content包含了抓取的HTML内容 # 假设我们要翻译的内容在<p>标签中 import re pattern = r'<p>(.*?)</p>' matches = re.findall(pattern, doc_content) translated_content = "" for match in matches: translated_match = translator.translate(match, src='auto', dest='zh-cn').text translated_content += f'<p>{translated_match}</p>' # 更新文档内容 doc.content = translated_content
请注意,上述代码仅为示例,它可能需要根据实际情况进行调整。Google Translate API的使用可能需要API密钥,并且对每次翻译请求有使用限制。
在处理完所有步骤后,你应该得到一个分析过的、可能已经翻译成中文的内容,然后你可以进一步进行总结。
## Post by: ferbivore ### Comments: **Always42**: I have been using bitwarden for some time, and actually pay for it because i like it so much. should i switch? > **Always42**: 我使用bitwarden已经有一段时间了,实际上是付费的,因为我非常喜欢它。我应该换吗? **shelled**: BitWarden has lost the trust. Besides recently there was a blocker bug on iOS and on Reddit I found out it happened earlier as well. They didn't even want to debug it and when I suggested this and asked whether they have any issue logged on Github where I could provide logs they went radio silent. Follow ups went completely unanswered. And yeah before that they had given a solution (because reinstall/re-login nothing had worked) - export your data, delete your account, create the account again, and re-import your data - that "should" work. Honestly it was worse than "restart your computer".<p>I guess it's time for another FOSS player here. It's fine, such things are cyclical I guess. Happened to Lastpass and Authy and someday it will happen to Ente and 2FAS and so on. > **shelled**: BitWarden已经失去了信任。此外,最近iOS和Reddit上也出现了一个拦截器错误,我发现它也发生在早些时候。他们没有;我甚至不想调试它,当我提出这个建议并询问他们在我可以提供日志的Github上是否有任何问题时,他们都沉默了。后续行动完全没有得到答复。是的,在此之前,他们已经给出了一个解决方案(因为重新安装重新登录没有任何效果)-导出您的数据,删除您的帐户,重新创建帐户,然后重新导入您的数据;应当";工作。老实说,这比";重新启动计算机”<p> 我想是吧;是时候轮到另一位自由和开源软件玩家了。它;好吧,我想这些事情是周期性的。发生在Lastpass和Authy身上,总有一天会发生在Ente和2FAS等身上。 **minebreaker**: <a href="https://github.com/bitwarden/clients/issues/11611#issuecomment-2436287977">https://github.com/bitwarden/clients/issues/11611#issuecomme...</a><p>> We have made some adjustments to how the SDK code is organized and packaged to allow you to build and run the app with only GPL/OSI licenses included. The sdk-internal package references in the clients now come from a new sdk-internal repository, which follows the licensing model we have historically used for all of our clients (see LICENSE_FAQ.md for more info). The sdk-internal reference only uses GPL licenses at this time. If the reference were to include Bitwarden License code in the future, we will provide a way to produce multiple build variants of the client, similar to what we do with web vault client builds. > **minebreaker**: <a href=“https:/;github.comG;bitwarden,;客户端-;问题.;11611#issuescommunity-2436287977”>https:/;github.com;bitwarden;客户;问题;11611#问题建议</a> <p>>;我们对SDK代码的组织和打包方式进行了一些调整,以允许您仅使用GPL构建和运行应用程序;包括OSI许可证。客户端中的sdk内部包引用现在来自一个新的sdk内部存储库,该存储库遵循我们历史上用于所有客户端的许可模式(有关更多信息,请参阅LICENSE_FAQ.md)。sdk内部参考目前仅使用GPL许可证。如果将来参考包括Bitwarden许可证代码,我们将提供一种生成客户端多个构建变体的方法,类似于我们对web vault客户端构建的方法。 **blendergeek**: Thank you to Bitwarden for relicensing a thing to Free/Open License! Unfortunately, I no longer recommend Bitwarden for normal people because the built-in password manager in Firefox is too good. But for anyone with more advance needs (or who doesn't trust a password manager built into a web browser, I always recommend Bitwarden because KeepassXC + syncing is way too difficult for normal people. > **blendergeek**: 感谢Bitwarden将一件事重新授权给Free;开放许可证!不幸的是,我不再向普通人推荐Bitwarden,因为Firefox中的内置密码管理器太好了。但对于任何有更高级需求的人(或者不信任网络浏览器内置的密码管理器的人),我总是推荐Bitwarden,因为KeepassXC+同步对普通人来说太难了。 **jdlyga**: Bitwarden is still excellent, but keep an eye on them over the next few years. Remember that Bitwarden was originally a LastPass alternative without the fuckery. > **jdlyga**: Bitwarden仍然很优秀,但在接下来的几年里要密切关注他们。记住,Bitwarden最初是LastPass的替代品,没有他妈的。
-