python - 我可以从 google refine 调用外部 *python* 函数吗?

标签 python google-refine

我正在研究 Google refine 以加快我的一些数据工作——这周之前我从未使用过它,但我喜欢我所看到的很多东西。

到目前为止,我最大的问题是是否可以从 Refine 调用外部 python 函数。我知道你可以在内部调用 jython,但是它不提供对基于 C 的 python 库(例如 lxml)的访问,而且我在其他地方有脚本我想集成,没有很多复制粘贴或重写的麻烦。

在 Refine 中执行此操作有哪些选项?我愿意发挥创意——我只想要一个稳定、可重复使用的解决方案。

最佳答案

作为Google Refine Wiki说:

lxml will NOT work in Jython, since lxml has C bindings for CPython (regular Python), hence will not work in Refine which is Jython / Java only, and has no CPython interpreter built-in

但你可以试试Google Refine Python Client Library以编程方式创建项目和操作数据。

关于python - 我可以从 google refine 调用外部 *python* 函数吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9117349/

相关文章:

OpenRefine: 'Fill Up' 替换一列中的值

java - 使用 ruby​​ python perl java 或其他方式进行谷歌优化的脚本驱动自动化

php - 在 EOT 中插入带有 PHP 变量的 python 代码

python - 在 Mac 上安装图形工具后,我收到 ValueError : Namespace Gtk not available

python - 转换为 float 时出错

python - Python 中 XML 数据的 For 循环返回预期元素数量的 4 倍

python - 禁用键盘但继续获取事件

openrefine - Openrefine 列中的累进数