0.1.7 解决软件包内互相调用时过量统计导致的运行缓慢问题
This commit is contained in:
parent
775d21f4ea
commit
f17b0d1902
@ -1,4 +1,4 @@
|
||||
# API Reference shows all functions in Guan package. The current version is guan-0.1.6 updated on December 23, 2023.
|
||||
# API Reference shows all functions in Guan package. The current version is guan-0.1.7 updated on November 01, 2023.
|
||||
|
||||
import guan
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
[metadata]
|
||||
# replace with your username:
|
||||
name = guan
|
||||
version = 0.1.6
|
||||
version = 0.1.7
|
||||
author = guanjihuan
|
||||
author_email = guanjihuan@163.com
|
||||
description = An open source python package
|
||||
|
@ -1,6 +1,6 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: guan
|
||||
Version: 0.1.6
|
||||
Version: 0.1.7
|
||||
Summary: An open source python package
|
||||
Home-page: https://py.guanjihuan.com
|
||||
Author: guanjihuan
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Guan is an open-source python package developed and maintained by https://www.guanjihuan.com/about (Ji-Huan Guan, 关济寰). The primary location of this package is on website https://py.guanjihuan.com. GitHub link: https://github.com/guanjihuan/py.guanjihuan.com.
|
||||
|
||||
# The current version is guan-0.1.6, updated on December 23, 2023.
|
||||
# The current version is guan-0.1.7, updated on November 01, 2023.
|
||||
|
||||
# Installation: pip install --upgrade guan
|
||||
|
||||
@ -4896,14 +4896,16 @@ def statistics_of_guan_package():
|
||||
try:
|
||||
import socket
|
||||
import guan
|
||||
datetime_date = guan.get_date()
|
||||
datetime_time = guan.get_time()
|
||||
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
client_socket.settimeout(0.5)
|
||||
client_socket.connect(('py.guanjihuan.com', 12345))
|
||||
message = guan.get_calling_function_name(layer=2)+"\n"
|
||||
send_message = datetime_date + ' ' + datetime_time + ' version_0.1.6 ' + message
|
||||
client_socket.send(send_message.encode())
|
||||
client_socket.close()
|
||||
message_calling = guan.get_calling_function_name(layer=3)
|
||||
if message_calling == '<module>':
|
||||
datetime_date = guan.get_date()
|
||||
datetime_time = guan.get_time()
|
||||
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
client_socket.settimeout(0.5)
|
||||
client_socket.connect(('py.guanjihuan.com', 12345))
|
||||
message = guan.get_calling_function_name(layer=2)+"\n"
|
||||
send_message = datetime_date + ' ' + datetime_time + ' version_0.1.7 guan.' + message
|
||||
client_socket.send(send_message.encode())
|
||||
client_socket.close()
|
||||
except:
|
||||
pass
|
Loading…
x
Reference in New Issue
Block a user