diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index fcfde2a..97b258b 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.174 +version = 0.1.175 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan.egg-info/PKG-INFO b/PyPI/src/guan.egg-info/PKG-INFO index 51c3d5b..b25c6e1 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: guan -Version: 0.1.174 +Version: 0.1.175 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/data_processing.py b/PyPI/src/guan/data_processing.py index 0616fc3..fceb9aa 100644 --- a/PyPI/src/guan/data_processing.py +++ b/PyPI/src/guan/data_processing.py @@ -1,7 +1,7 @@ # Module: data_processing # 获取运行的日期和时间并写入文件 -def statistics_with_day_and_time(content='', filename='time_logging', file_format='.txt'): +def logging_with_day_and_time(content='', filename='time_logging', file_format='.txt'): import datetime datetime_today = str(datetime.date.today()) datetime_time = datetime.datetime.now().strftime('%H:%M:%S') diff --git a/PyPI/src/guan/deprecated.py b/PyPI/src/guan/deprecated.py index 317704d..976918e 100644 --- a/PyPI/src/guan/deprecated.py +++ b/PyPI/src/guan/deprecated.py @@ -37,4 +37,9 @@ def pdf_to_text(pdf_path): import guan print('Warning: The current function name has been deprecated, which will be deleted in the future version. Please change it into guan.pdf_to_text_with_pdfminer3k().') content = guan.pdf_to_text_with_pdfminer3k(pdf_path) - return content \ No newline at end of file + return content + +def statistics_with_day_and_time(content='', filename='time_logging', file_format='.txt'): + import guan + print('Warning: The current function name has been deprecated, which will be deleted in the future version. Please change it into guan.logging_with_day_and_time().') + guan.logging_with_day_and_time(content=content, filename=filename, file_format=file_format) \ No newline at end of file