python - InfluxDB 的查询生成器?

标签 python influxdb influxdb-python

在 Python 中正确构建 InfluxDB 查询的首选方法是什么?

(我一直在寻找合适的 InfluxDB 查询构建器。我发现的那些要么是旧的/过时的,要么不能真正为 InfluxDB 生成有效的查询。)

最佳答案

你也许可以使用 Pinform这是 InfluxDB 的某种 ORM/OSTM(对象时间序列映射)。

它可以帮助设计模式和构建普通查询或聚合查询。

cli.get_fields_as_series(OHLC,
    field_aggregations={'close': [AggregationMode.MEAN]},
    tags={'symbol': 'AAPL'},
    group_by_time_interval='10d')

免责声明:我是这个库的作者

关于python - InfluxDB 的查询生成器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49853360/

相关文章:

database - InfluxDB:存储音频或视频

excel - 通过 WinHttpRequest 将多个测量值发布到 influxDB 的正确行分隔符是什么?

python - 在 python 中使用 Influxdb 客户端 - 错误 : 'InfluxDBClient' object has no attribute 'create_database' /' get_list_database '

Python Selenium 右键单击

python - 获取与<li>标签相关的<h2>标签

python - 如何在python中使用urllib2发布数据和二进制数据

python - 在 InfluxDB-Python 中使用变更数据捕获?

python - 如何使用Python迭代influxDB结果

python - 预测事件顺序的机器学习算法?

python - 如何将字典格式的txt文件转换为python中的数据帧?