Esempio n. 1
0
 def __init__(self, data_resource='ifind'):
     self.logger = mylog.set_log()
     self.dic_init = {}
     self.dic_init['data_resource'] = data_resource
     self.dic_init['data_init_flag'] = self.log_init(data_resource)
     mysql_con_demo = MysqlCon()
     self.engine = mysql_con_demo.getMysqlCon(flag='engine')
     self.conn = mysql_con_demo.getMysqlCon(flag='connect')
     self.GetDataToMysqlDemo = GetDataToMysql()
Esempio n. 2
0
 def __init__(self):
     self.start_date = '2020-07-01'
     self.end_date = '2020-07-31'
     self.file_path = r"D:\\工作文件\\指数基金月报\\培训PPT\\0821\\"
     MysqlConDemo = MysqlCon()
     self.engine = MysqlConDemo.getMysqlCon('engine')
     self.name_dic = {
         'fund_code': '基金代码',
         'fund_type': '基金类型',
         'product_type': '产品类型',
         'fund_name': '基金名称',
         'establish_date': '基金成立日',
         'indx_sname': '跟踪指数',
         'class_classify': '跟踪指数类型',
         'index_code': '跟踪指数代码'
     }
     self.logger = mylog.set_log()
Esempio n. 3
0
 def __init__(self):
     self.logger = mylog.set_log()
     mysql_con_demo = MysqlCon()
     self.engine = mysql_con_demo.getMysqlCon(flag='engine')
     w.start()
 def __init__(self):
     MysqlConDemo = MysqlCon()
     self.engine = MysqlConDemo.getMysqlCon('engine')
 def __init__(self):
     MysqlConDemo = MysqlCon()
     self.engine = MysqlConDemo.getMysqlCon('engine')
     self.GetDataTotalMainDemo = GetDataTotalMain(data_resource='wind')
     self.industry_trade_limit = 20000000