0.1.78
This commit is contained in:
parent
85026ca536
commit
d70ba53b9d
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.1.77
|
version = 0.1.78
|
||||||
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
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.1
|
Metadata-Version: 2.1
|
||||||
Name: guan
|
Name: guan
|
||||||
Version: 0.1.77
|
Version: 0.1.78
|
||||||
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
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
import guan
|
import guan
|
||||||
|
|
||||||
# 获取当前日期字符串
|
# 获取当前日期字符串
|
||||||
@guan.statistics_decorator
|
|
||||||
def get_date(bar=True):
|
def get_date(bar=True):
|
||||||
import datetime
|
import datetime
|
||||||
datetime_date = str(datetime.date.today())
|
datetime_date = str(datetime.date.today())
|
||||||
@ -11,7 +10,6 @@ def get_date(bar=True):
|
|||||||
return datetime_date
|
return datetime_date
|
||||||
|
|
||||||
# 获取当前时间字符串
|
# 获取当前时间字符串
|
||||||
@guan.statistics_decorator
|
|
||||||
def get_time(colon=True):
|
def get_time(colon=True):
|
||||||
import datetime
|
import datetime
|
||||||
datetime_time = datetime.datetime.now().strftime('%H:%M:%S')
|
datetime_time = datetime.datetime.now().strftime('%H:%M:%S')
|
||||||
@ -901,7 +899,6 @@ def compress_wav_to_mp3(wav_path, output_filename='a.mp3', bitrate='16k'):
|
|||||||
sound.export(output_filename,format="mp3",bitrate=bitrate)
|
sound.export(output_filename,format="mp3",bitrate=bitrate)
|
||||||
|
|
||||||
# 获取MAC地址
|
# 获取MAC地址
|
||||||
@guan.statistics_decorator
|
|
||||||
def get_mac_address():
|
def get_mac_address():
|
||||||
import uuid
|
import uuid
|
||||||
mac_address = uuid.UUID(int=uuid.getnode()).hex[-12:].upper()
|
mac_address = uuid.UUID(int=uuid.getnode()).hex[-12:].upper()
|
||||||
@ -909,7 +906,6 @@ def get_mac_address():
|
|||||||
return mac_address
|
return mac_address
|
||||||
|
|
||||||
# 获取调用本函数的函数名
|
# 获取调用本函数的函数名
|
||||||
@guan.statistics_decorator
|
|
||||||
def get_calling_function_name(layer=1):
|
def get_calling_function_name(layer=1):
|
||||||
import inspect
|
import inspect
|
||||||
caller = inspect.stack()[layer]
|
caller = inspect.stack()[layer]
|
||||||
@ -933,7 +929,6 @@ def get_latest_version(package_name='guan', timeout=5):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
# 获取软件包的本机版本
|
# 获取软件包的本机版本
|
||||||
@guan.statistics_decorator
|
|
||||||
def get_current_version(package_name='guan'):
|
def get_current_version(package_name='guan'):
|
||||||
import importlib.metadata
|
import importlib.metadata
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user