shancx 1.4__py3-none-any.whl → 1.60__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
shancx/__init__.py
CHANGED
|
@@ -32,9 +32,7 @@ print_handler.setFormatter(formatter) # 设置屏幕上显示的格式
|
|
|
32
32
|
loggers.addHandler(print_handler)
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
def tim_tor(func):
|
|
35
|
+
def Tim_Tor(func):
|
|
38
36
|
def wrapper(*args, **kwargs):
|
|
39
37
|
start_time = time.time()
|
|
40
38
|
result = func(*args, **kwargs)
|
|
@@ -43,3 +41,14 @@ def tim_tor(func):
|
|
|
43
41
|
loggers.info(f"{func.__name__} took {end_time - start_time:.4f} seconds")
|
|
44
42
|
return result
|
|
45
43
|
return wrapper
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
from itertools import product
|
|
50
|
+
from multiprocessing import Pool
|
|
51
|
+
def Mul_Ess(map_fun,tuple_list):
|
|
52
|
+
with Pool(31) as p:
|
|
53
|
+
P_data = p.map(map_fun, tuple_list)
|
|
54
|
+
return P_data
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shancx
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.60
|
|
4
4
|
Summary: A simple timer decorator
|
|
5
5
|
Home-page: https://gitee.com/shancx
|
|
6
6
|
Author: Your Name
|
|
@@ -18,12 +18,6 @@ A simple Python package that provides a timer decorator to measure the execution
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
pip install
|
|
21
|
+
pip install shancx
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
python setup.py sdist bdist_wheel
|
|
26
|
-
|
|
27
|
-
twine upload dist/*
|
|
28
|
-
|
|
29
23
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
my_timer_decorator/__init__.py,sha256=ur0N4vwlv-LfYOCph5A8g6H8aFxxc9EhJdG9sxpa-SY,303
|
|
2
|
+
shancx/__init__.py,sha256=7E61iUEkmy21JSSyOk6kTRGB9yGJo5dJ5cMqHKqCW4U,1790
|
|
3
|
+
shancx/util_log.py,sha256=bGu-oCU7hozBBZJB6oDGj9XDDsz5GJVe8ZfJtx5pddA,1204
|
|
4
|
+
shancx-1.60.dist-info/METADATA,sha256=Ymku04OYpWTcfJcGi68WJEeG9rQZP_5ZobTgcQU6jXA,572
|
|
5
|
+
shancx-1.60.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
6
|
+
shancx-1.60.dist-info/top_level.txt,sha256=akfCS1vKWz3pNmEN_yN9ZiGp-60IQY5ET38mRx_i_-4,7
|
|
7
|
+
shancx-1.60.dist-info/RECORD,,
|
shancx-1.4.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
my_timer_decorator/__init__.py,sha256=ur0N4vwlv-LfYOCph5A8g6H8aFxxc9EhJdG9sxpa-SY,303
|
|
2
|
-
shancx/__init__.py,sha256=SzIagtqAHBQycqU3mp6jsKqf1JgTBTkY8YHAMoPKKs0,1596
|
|
3
|
-
shancx/util_log.py,sha256=bGu-oCU7hozBBZJB6oDGj9XDDsz5GJVe8ZfJtx5pddA,1204
|
|
4
|
-
shancx-1.4.dist-info/METADATA,sha256=uES6_L0_Lj8KW9WuSAtvakzZ49JMm-43ZixKLk2f3SE,651
|
|
5
|
-
shancx-1.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
6
|
-
shancx-1.4.dist-info/top_level.txt,sha256=akfCS1vKWz3pNmEN_yN9ZiGp-60IQY5ET38mRx_i_-4,7
|
|
7
|
-
shancx-1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|