From 75c70256d24e35f4aeea49fdd59d71490c004ea9 Mon Sep 17 00:00:00 2001 From: phamdinhkhanh Date: Wed, 6 Nov 2024 23:53:10 +0700 Subject: [PATCH] fix logging --- setup.py | 1 - vnquant/data/dataloader.py | 2 +- vnquant/data/loader/cafe.py | 3 +-- vnquant/data/loader/vnd.py | 2 +- vnquant/log/__init__.py | 6 ++++++ 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 vnquant/log/__init__.py diff --git a/setup.py b/setup.py index febd81b..63e63e0 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,6 @@ 'Programming Language :: Python :: 3.6', 'Topic :: Financial/Stock Market', ], - keywords = 'data', install_requires=INSTALL_REQUIRES, zip_safe=False, diff --git a/vnquant/data/dataloader.py b/vnquant/data/dataloader.py index 8695e68..d865a71 100644 --- a/vnquant/data/dataloader.py +++ b/vnquant/data/dataloader.py @@ -11,7 +11,7 @@ import pandas as pd from vnquant import configs from vnquant.data.loader import DataLoaderVND, DataLoaderCAFE -from vnquant.log.logging import logger +from vnquant.log import logger URL_VND = configs.URL_VND diff --git a/vnquant/data/loader/cafe.py b/vnquant/data/loader/cafe.py index aa4d6d6..b2dc507 100644 --- a/vnquant/data/loader/cafe.py +++ b/vnquant/data/loader/cafe.py @@ -1,6 +1,5 @@ # Copyright (c) vnquant. All rights reserved. import pandas as pd -import logging as logging import requests from datetime import datetime from requests.packages.urllib3.exceptions import InsecureRequestWarning @@ -11,7 +10,7 @@ # sys.path.insert(0,'/Users/phamdinhkhanh/Documents/vnquant') from vnquant import configs from vnquant.data.loader.proto import DataLoadProto -from vnquant.log.logging import logger +from vnquant.log import logger from vnquant.utils import utils URL_VND = configs.URL_VND diff --git a/vnquant/data/loader/vnd.py b/vnquant/data/loader/vnd.py index 4d2a03b..60d1882 100644 --- a/vnquant/data/loader/vnd.py +++ b/vnquant/data/loader/vnd.py @@ -11,7 +11,7 @@ # sys.path.insert(0,'/Users/phamdinhkhanh/Documents/vnquant') from vnquant import utils from vnquant import configs -from vnquant.log.logging import logger +from vnquant.log import logger from vnquant.data.loader.proto import DataLoadProto API_VNDIRECT = configs.API_VNDIRECT diff --git a/vnquant/log/__init__.py b/vnquant/log/__init__.py new file mode 100644 index 0000000..2bb9aa9 --- /dev/null +++ b/vnquant/log/__init__.py @@ -0,0 +1,6 @@ +# Copyright (c) vnquant. All rights reserved. +from .logging import * + +__all__ = [ + 'logger' +]