This commit is contained in:
guanjihuan 2025-03-24 18:00:26 +08:00
parent 83601c45af
commit c35688a49e
4 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[metadata] [metadata]
# replace with your username: # replace with your username:
name = guan name = guan
version = 0.1.174 version = 0.1.175
author = guanjihuan author = guanjihuan
author_email = guanjihuan@163.com author_email = guanjihuan@163.com
description = An open source python package description = An open source python package

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.4 Metadata-Version: 2.4
Name: guan Name: guan
Version: 0.1.174 Version: 0.1.175
Summary: An open source python package Summary: An open source python package
Home-page: https://py.guanjihuan.com Home-page: https://py.guanjihuan.com
Author: guanjihuan Author: guanjihuan

View File

@ -1,7 +1,7 @@
# Module: data_processing # 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 import datetime
datetime_today = str(datetime.date.today()) datetime_today = str(datetime.date.today())
datetime_time = datetime.datetime.now().strftime('%H:%M:%S') datetime_time = datetime.datetime.now().strftime('%H:%M:%S')

View File

@ -38,3 +38,8 @@ def pdf_to_text(pdf_path):
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().') 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) content = guan.pdf_to_text_with_pdfminer3k(pdf_path)
return content 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)