Python 和 kdb 集成

发布于 2024-11-14 22:09:08 字数 1539 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

白鸥掠海 2024-11-21 22:09:08

timestored 网站有一个kdb 的 python api 指南,并配有视频。
https://www.timestored.com/kdb-guides/python-api

总结一下您的选择:

  1. qPython - 最新 API,支持 Python 2.7
  2. Dan Nugents Python Library - 仍然维护用于将数据拉入 Python 的 API <=来自 kdb 服务器的 v2.6。比 qpy 快。
  3. qpy - 基于 kx.com 的 java API 的原始 API。比 Dans 慢,但打印时表格的格式更好。
  4. PyQ - 走了吗? - 将 Python 和 Q 解释器引入同一进程,并允许用任一语言编写的代码对相同数据进行操作。支持 Python 2.7 和 3.x 以及所有版本的 kdb+。
  5. PyKX - 商业

The timestored website has a guide to the python apis for kdb complete with videos.
https://www.timestored.com/kdb-guides/python-api

To summarize your options:

  1. qPython - Newest API, supporting Python 2.7
  2. Dan Nugents Python Library - Still maintained API for pulling data into Python <=v2.6 from a kdb server. Faster than qpy.
  3. qpy - Original API that was based on kx.com's java API. Slower than Dans but nicer formatting of tables when printed.
  4. PyQ - Gone? - Brings Python and Q interpreters into the same process and allows code written in either of the languages to operate on the same data. Supports Python 2.7 and 3.x and all versions of kdb+.
  5. PyKX - Commercial
梦境 2024-11-21 22:09:08

还有 Dan Nugent 的 https://github.com/DannoHung/q

也请注意,与 perl,有时通过 Web 套接字进行格式化导出就足够了——只需 GET http://SERVER.example:PORT/FMT?QUERY,其中 FMT 是 csv/txt/xml/xls 中的任意一个(例如 http://localhost:5050/csv?table< /代码>)

there's also Dan Nugent's https://github.com/DannoHung/q

also note that, as with perl, sometimes the formatted export over the web socket is sufficient -- just GET http://SERVER.example:PORT/FMT?QUERY, where FMT is any of csv/txt/xml/xls (e.g. http://localhost:5050/csv?table)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文