bluer-options 5.173.1__py3-none-any.whl → 5.175.1__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.
Potentially problematic release.
This version of bluer-options might be problematic. Click here for more details.
- bluer_options/__init__.py +1 -1
- bluer_options/timing/classes.py +11 -1
- {bluer_options-5.173.1.dist-info → bluer_options-5.175.1.dist-info}/METADATA +1 -1
- {bluer_options-5.173.1.dist-info → bluer_options-5.175.1.dist-info}/RECORD +7 -7
- {bluer_options-5.173.1.dist-info → bluer_options-5.175.1.dist-info}/WHEEL +0 -0
- {bluer_options-5.173.1.dist-info → bluer_options-5.175.1.dist-info}/licenses/LICENSE +0 -0
- {bluer_options-5.173.1.dist-info → bluer_options-5.175.1.dist-info}/top_level.txt +0 -0
bluer_options/__init__.py
CHANGED
bluer_options/timing/classes.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import time
|
|
2
|
-
from typing import List
|
|
2
|
+
from typing import List, Dict
|
|
3
3
|
from collections import defaultdict
|
|
4
4
|
from functools import wraps
|
|
5
5
|
|
|
@@ -9,6 +9,12 @@ from bluer_options.logger.config import log_list
|
|
|
9
9
|
from bluer_options.timing.elapsed_timer import ElapsedTimer
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
def recursive_to_dict(d):
|
|
13
|
+
if isinstance(d, (defaultdict, dict)):
|
|
14
|
+
d = {k: recursive_to_dict(v) for k, v in d.items()}
|
|
15
|
+
return d
|
|
16
|
+
|
|
17
|
+
|
|
12
18
|
class Timing:
|
|
13
19
|
def __init__(self):
|
|
14
20
|
self._active = {}
|
|
@@ -30,6 +36,10 @@ class Timing:
|
|
|
30
36
|
|
|
31
37
|
return elapsed
|
|
32
38
|
|
|
39
|
+
@property
|
|
40
|
+
def as_dict(self) -> Dict:
|
|
41
|
+
return recursive_to_dict(self.stats)
|
|
42
|
+
|
|
33
43
|
def as_list(self, **kwgrs) -> List[str]:
|
|
34
44
|
lines = []
|
|
35
45
|
# sort items by total time (descending)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bluer_options/__init__.py,sha256=
|
|
1
|
+
bluer_options/__init__.py,sha256=aDCJFUDVdq3MwloKECDq-_nrNs8t5Ew3DjcawqN13c4,288
|
|
2
2
|
bluer_options/__main__.py,sha256=-6ce9W1uXkle4YtEYlSUMWxSmsur3dRDA4_MvNNhEVg,236
|
|
3
3
|
bluer_options/config.env,sha256=2AG3xuWiMqaNmlCNDWQOJ_AssKk7KXhn0XDIkHWNQ2Q,30
|
|
4
4
|
bluer_options/timer.py,sha256=UPmsfCjbEWpcjXgMpYemXieheMJH_UpuemhVGsKYVoE,2470
|
|
@@ -65,10 +65,10 @@ bluer_options/terminal/__init__.py,sha256=kyNhbC5NVCuqrUhbbTeAOTW1ZO7MRRbi0RtXGB
|
|
|
65
65
|
bluer_options/terminal/__main__.py,sha256=3o465bp44c2f1KHDn4j664hpbvu8wKOwQ2c1OPoa6Xc,902
|
|
66
66
|
bluer_options/terminal/functions.py,sha256=A23uHLeU4JIctmecOFk_KhIfOeHu-WMjnSzBj2KiF3U,1947
|
|
67
67
|
bluer_options/timing/__init__.py,sha256=CCIJKvRVdimLdk46WOc_C-t8HHTVFPdGxQTFCFrN5zc,127
|
|
68
|
-
bluer_options/timing/classes.py,sha256=
|
|
68
|
+
bluer_options/timing/classes.py,sha256=28q4Yw6T-SOer8pNXx1eLhnSvkTWX9WaF6ZLjXAUzu8,3639
|
|
69
69
|
bluer_options/timing/elapsed_timer.py,sha256=ecM11nzXnoDL_k6p41YPH28-OLnYreg_CgPQlbv4mjI,897
|
|
70
|
-
bluer_options-5.
|
|
71
|
-
bluer_options-5.
|
|
72
|
-
bluer_options-5.
|
|
73
|
-
bluer_options-5.
|
|
74
|
-
bluer_options-5.
|
|
70
|
+
bluer_options-5.175.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
|
71
|
+
bluer_options-5.175.1.dist-info/METADATA,sha256=fvAGNzoVnxgTNAmp-L9IxiYQPKCyPOyegZwnwvtx1zc,4951
|
|
72
|
+
bluer_options-5.175.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
73
|
+
bluer_options-5.175.1.dist-info/top_level.txt,sha256=yw9slt8n3R7IiYmf83OtHtB8Z-EgP9UwyQTk1EGiAJU,14
|
|
74
|
+
bluer_options-5.175.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|