<filename>dataframefeed/constant.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 01 17:28:29 2015

@author: lenovo
"""
from datetime import datetime
import pandas as pd
"""
时间常数
"""
_START_ = '1994-01-01';
_MIDDLE_ = '2015-11-27';
_TODAY_ = datetime.now().strftime('%Y-%m-%d');
_RATE_FREE_ = 0.05

_start_range = pd.date_range(start=_START_,periods=7)
_end_range = pd.date_range(end=_MIDDLE_,periods=7)


"""
数据库常数
"""
_PATH_CODE_ = 'd:/data/code.csv';
_ENGINE_ = 'postgresql://postgres:root@localhost:5432/tushare'

#数据库参数信息及基础语句，pgres——test用
_DATABASE_ = 'tushare'
_USER_ =  'postgres'
_PASSWORD_ = '<PASSWORD>'
_HOST_ =  '127.0.0.1'

_LOG_FILENAME_ = 'logging.conf' #日志配置文件名
_LOG_CONTENT_NAME_ = 'pg_log' #日志语句提示信息

__SQL1_ = '''CREATE TABLE ts_his(
        date INTEGER,
        sv_productname VARCHAR(32)
        );'''

<filename>dataframefeed/constant.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 01 17:28:29 2015

@author: lenovo
"""
from datetime import datetime
import pandas as pd
"""
时间常数
"""
_START_ = '1994-01-01';
_MIDDLE_ = '2015-11-27';
_TODAY_ = datetime.now().strftime('%Y-%m-%d');
_RATE_FREE_ = 0.05

_start_range = pd.date_range(start=_START_,periods=7)
_end_range = pd.date_range(end=_MIDDLE_,periods=7)


"""
数据库常数
"""
_PATH_CODE_ = 'd:/data/code.csv';
_ENGINE_ = 'postgresql://postgres:root@localhost:5432/tushare'

#数据库参数信息及基础语句，pgres——test用
_DATABASE_ = 'tushare'
_USER_ =  'postgres'
_PASSWORD_ = '<PASSWORD>'
_HOST_ =  '127.0.0.1'

_LOG_FILENAME_ = 'logging.conf' #日志配置文件名
_LOG_CONTENT_NAME_ = 'pg_log' #日志语句提示信息

__SQL1_ = '''CREATE TABLE ts_his(
        date INTEGER,
        sv_productname VARCHAR(32)
        );'''

# -*- coding: utf-8 -*- Created on Sat Aug 01 17:28:29 2015  @author: lenovo 时间常数 数据库常数 #数据库参数信息及基础语句，pgres——test用 #日志配置文件名 #日志语句提示信息 CREATE TABLE ts_his(         date INTEGER,         sv_productname VARCHAR(32)         );