有没有关于 python-purple 的例子?
我想学习它,但我不知道从哪里开始。 那里的所有内容都建议阅读 libpurple 源代码,但我认为我对 c 的理解还不足以真正掌握它。
I want to learn it but I have no idea where to start. Everything out there suggests reading the libpurple
source but I don't think I understand enough c
to really get a grasp of it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
目前还没有太多内容... 简介、howto 和 来源(在这里在线浏览它们,但当然你可以 git 克隆它们)是关于它的。 特别是,您可以从 这里确实有一些使用 Purple 设施的小例子(绝对不够,但也许它可以帮助您在一些“dir”、“help”和类似...?)
There isn't much about it yet... the intro, the howto, and the sources (here browsing them online but of course you can git clone them) are about it. In particular, the tiny example client you can get from here does have some miniscule example of use of purple's facilities (definitely not enough, but maybe it can get you started with the help of some 'dir', 'help' and the like...?)
不确定这会有多大帮助,但根据 此处 的信息,看来您只是安装 python-purple 并像普通 Python 函数一样导入和调用函数。
Not sure how much help this will be but based on information from here, it seems like you just install python-purple and import and call the functions as normal Python functions.
无法帮助您提供具体的示例,因为我决定使用其他东西。 然而,克隆存储库后我想做的第一件事就是删除 ecore 依赖项。 以下是提交到邮件列表的补丁,用于实现此目的: https://garage.maemo.org/pipermail/python-purple-devel/2009-March/000000.html
顺便说一句,如果您正在寻找 AIM,请查看twisted.words。 对于雅虎,尝试获取 curphoo 或锌的来源(两者都是控制台 YMSG 客户端)。 对于 GTalk/Jabber,我在 xmpppy 方面获得了很好的体验。
Can't help you with a concrete example as I decided to use something else. However, one of the first things I wanted to do after I cloned the repo was remove the ecore dependency. Here's a patch submitted to the mailing list to do just that: https://garage.maemo.org/pipermail/python-purple-devel/2009-March/000000.html
Incidentally, if you're looking for AIM take a look at twisted.words. For Yahoo, trying getting the source for curphoo or zinc (both are console YMSG clients). For GTalk/Jabber, I've had good experiences with xmpppy.