-
Notifications
You must be signed in to change notification settings - Fork 0
mggger/pydruid-wrapper
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# About 查询Apache Druid的接口 ## Quick Start **timeseries** ```python3 from druid.client import DruidClient from druid.timeseries import TimeSeriesBuilder def main(): param = { "datasource": "xxxx", "metric": "pv", "field": "xxx", "granularity": "pt1m", "interval": "2020-02-22T21:32:00+08:00/2020-02-22T21:33:00+08:00" } ts = TimeSeriesBuilder(param) # Druid router host # Druid router port c = DruidClient("127.0.0.1", 8888) res = c.run(ts) print(res) if __name__ == '__main__': main() ```
About
A wrapper for pydruid, easy for query apache druid
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published