forked from francinexue/xuefu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constant.py
44 lines (34 loc) · 1.13 KB
/
constant.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 01 17:28:29 2015
@author: lenovo
"""
from datetime import datetime
import pandas as pd
####################dao使用###########################
_TUSHARE_FOUNDAMENTAL_METHOD_LIST_ = ['get_growth_data', 'get_operation_data', 'get_debtpaying_data',
'get_report_data', 'get_cashflow_data', 'get_profit_data']#财务获取列表
_MONGODB_ENGIN_ = 'mongodb://localhost:27017/';
_MONGODB_DATABASE_ = 'admin'
################################################
"""
时间常数
"""
_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_ = 'root'
_HOST_ = '127.0.0.1'
_LOG_FILENAME_ = 'logging.conf' #日志配置文件名
_LOG_CONTENT_NAME_ = 'pg_log' #日志语句提示信息