Skip to content

A wrapper for pydruid, easy for query apache druid

Notifications You must be signed in to change notification settings

mggger/pydruid-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages