Hydro数据 API 操作和服务框架
Hydro 是一个 Python 的开源数据 API 操作和服务框架。主要帮助 Web 服务和其他数据消费者从不同的数据流中抽取数据,并在线处理。
示例代码:
#creating a plan object plan = PlanObject(params, source_id, conf) # defining data source and type plan.data_source = 'vertica-dash' plan.source_type = Configurator.VERTICA # time diff based on input params time_diff = (plan.TO_DATE - plan.FROM_DATE).total_seconds() # if time range is bigger than 125 days and application type is dashboard, abort! # since data need to be fetched quickly if time_diff > Configurator.SECONDS_IN_DAY*125 and params['APP_TYPE'].to_string() == 'Dashboard': raise HydroException('Time range is too big') # else, if average records per day is bigger than 1000 or client is convertro then run sample logic elif plan.AVG_RECORDS_PER_DAY > 1000 or params['CLIENT_ID'].to_string() == 'convertro': plan.template_file = 'device_grid_widget_sampling.sql' plan.sampling = True self.logger.debug('Sampling for the query has been turn on') # else run other logic else: plan.template_file = 'device_grid_widget.sql' #return plan object to the query engine return plan
评论
FiliYahoo 大数据 web 服务 API 框架
FiliFili是一个搭建和维护RESTfulweb服务的Java开源框架,主要应用于时间大数据的访问和分析。Fili的API使用HTTPGET,十分简洁,易于使用,大大简化了度量(metic)和维度
FiliYahoo 大数据 web 服务 API 框架
0
fw4wdbIndexedDB 操作框架
fw4wdb是一个简单封装的IndexedDB操作框架支持get、put、getAll、each和range操作<html><head><title>test<
fw4wdbIndexedDB 操作框架
0
Flask-RestactionRESTful API 框架
Flask-Restaction,为RESTfulAPI而生的Web框架:创建RESTfulAPI校验用户输入以及将输出转化成合适的响应格式身份验证和权限控制自动生成JavascriptSDK和API
Flask-RestactionRESTful API 框架
0
FiliYahoo 大数据 web 服务 API 框架
Fili Fili 是一个搭建和维护 RESTful web 服务的 Java 开源框架,主
FiliYahoo 大数据 web 服务 API 框架
0
binder-swagger-javaSwagger API 框架
`binder-swagger-java`是一套简易的API管理方案。它可以生成swaggerui可以浏览、交互的API,还可以自动为没有实现的接口/操作生成数据和响应。 它如何工作的?我们在类的静态
binder-swagger-javaSwagger API 框架
0
ruoRESTful API 框架
ruo是一个 RESTfulAPI框架。开发npm install --global lerna@2.0.0-beta.30npm installlerna bootstrap安装包ruoruo-cl
ruoRESTful API 框架
0