annet 0.12.4__py3-none-any.whl → 0.12.5__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 annet might be problematic. Click here for more details.
- annet/gen.py +2 -0
- annet/generators/perf.py +2 -1
- annet/types.py +6 -1
- {annet-0.12.4.dist-info → annet-0.12.5.dist-info}/METADATA +1 -1
- {annet-0.12.4.dist-info → annet-0.12.5.dist-info}/RECORD +10 -10
- {annet-0.12.4.dist-info → annet-0.12.5.dist-info}/AUTHORS +0 -0
- {annet-0.12.4.dist-info → annet-0.12.5.dist-info}/LICENSE +0 -0
- {annet-0.12.4.dist-info → annet-0.12.5.dist-info}/WHEEL +0 -0
- {annet-0.12.4.dist-info → annet-0.12.5.dist-info}/entry_points.txt +0 -0
- {annet-0.12.4.dist-info → annet-0.12.5.dist-info}/top_level.txt +0 -0
annet/gen.py
CHANGED
|
@@ -833,8 +833,10 @@ class Loader:
|
|
|
833
833
|
use_mesh=not self._args.no_mesh,
|
|
834
834
|
preload_extra_fields=True,
|
|
835
835
|
)
|
|
836
|
+
|
|
836
837
|
for device in devices:
|
|
837
838
|
self._devices_map[device.id] = device
|
|
839
|
+
|
|
838
840
|
self._gens.update(_old_resolve_gens(self._args, storage, devices))
|
|
839
841
|
if not devices and not self._no_empty_warning:
|
|
840
842
|
get_logger().error("No devices found for %s", self._args.query)
|
annet/generators/perf.py
CHANGED
|
@@ -57,6 +57,7 @@ class GeneratorPerfMesurer:
|
|
|
57
57
|
exc_tb=None) -> GeneratorPerf:
|
|
58
58
|
total = time.monotonic() - self._start_time
|
|
59
59
|
self._span_ctx.__exit__(exc_type, exc_val, exc_tb)
|
|
60
|
+
rt = self._gen.storage.flush_perf()
|
|
60
61
|
|
|
61
62
|
meta = {}
|
|
62
63
|
if tracing_connector.get().enabled:
|
|
@@ -68,7 +69,7 @@ class GeneratorPerfMesurer:
|
|
|
68
69
|
},
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
self.last_result = GeneratorPerf(total=total, rt=
|
|
72
|
+
self.last_result = GeneratorPerf(total=total, rt=rt, meta=meta)
|
|
72
73
|
return self.last_result
|
|
73
74
|
|
|
74
75
|
def __enter__(self):
|
annet/types.py
CHANGED
|
@@ -25,7 +25,12 @@ class GeneratorPerf:
|
|
|
25
25
|
Рантайм статистика времени выполнения генератора
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
|
-
def __init__(
|
|
28
|
+
def __init__(
|
|
29
|
+
self,
|
|
30
|
+
total: float,
|
|
31
|
+
rt: Optional[Dict[str, List[Dict[str, Any]]]],
|
|
32
|
+
meta: Optional[Dict[str, Any]] = None
|
|
33
|
+
):
|
|
29
34
|
self.total = total
|
|
30
35
|
self.rt = rt
|
|
31
36
|
self._meta = meta
|
|
@@ -8,7 +8,7 @@ annet/deploy.py,sha256=B8E0P_VvCrS2URjFvgmUiIkHp95g7pAWfmT34igaDeo,18893
|
|
|
8
8
|
annet/diff.py,sha256=zLcaCnb4lZRUb7frpH1CstQ3kacRcCblZs1uLG8J5lk,3391
|
|
9
9
|
annet/executor.py,sha256=bw7COJNtssuxIqbQehlHYJnkdUeYvvL8WO5B-c67XE0,19040
|
|
10
10
|
annet/filtering.py,sha256=F4ZKUCU3Yb1RlL2zKdyHtVUaWPzjWF4vWyMcdygKNYk,852
|
|
11
|
-
annet/gen.py,sha256=
|
|
11
|
+
annet/gen.py,sha256=f2Prqn0MMEkNT-CdqI_Zb7R9_iaUA8dBS5nr67ShUws,32502
|
|
12
12
|
annet/hardware.py,sha256=HYPDfji_GdRn5S0_0fl4rvM7byOY9aHxG6VMAtsLaxE,1090
|
|
13
13
|
annet/implicit.py,sha256=QigK4uoxvrFho2h9yFjOq1d9rLsC5xFlAU4bKkCuMWk,5139
|
|
14
14
|
annet/lib.py,sha256=zQIfNBg7fAAk2BHbHAqy_McAiXhz0RqpBAcfdU-6pAA,3742
|
|
@@ -20,7 +20,7 @@ annet/storage.py,sha256=B16iUJwxKd0RWnUaogWQs0WQtiH1YCzPypSHNpBYPDM,2395
|
|
|
20
20
|
annet/tabparser.py,sha256=ZjiI43ZVbrpMVR8qNbTbNh_U3oZ26VDc_2Y9wkkDkYA,874
|
|
21
21
|
annet/text_term_format.py,sha256=CHb6viv45vmYl-SK1A1vyPHGhaEni6jVybBusaQnct8,2813
|
|
22
22
|
annet/tracing.py,sha256=ndpM-au1c88uBBpOuH_z52qWZL773edYozNyys_wA68,4044
|
|
23
|
-
annet/types.py,sha256=
|
|
23
|
+
annet/types.py,sha256=f2HwqoKa6AucwFwDMszoouB6m1B8n6VmdjHMktO30Kc,7175
|
|
24
24
|
annet/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
annet/adapters/netbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
annet/adapters/netbox/provider.py,sha256=OM7Hq2vnMHNVBfubJvx2qJlMYm3VvKhomdLMNO8YnLQ,1024
|
|
@@ -74,7 +74,7 @@ annet/generators/entire.py,sha256=7WySkVaXNT3ZAiHcQ0JUKdlhGJAN8cNUxF6c7ilYnO8,29
|
|
|
74
74
|
annet/generators/exceptions.py,sha256=GPXTBgn2xZ3Ev_bdOPlfCLGRC1kQHe_dEq88S-uyi5s,151
|
|
75
75
|
annet/generators/jsonfragment.py,sha256=itHDq46B50o2-zxnEtCAPb8XKyc0-ozTe-E_MjpkfHw,4020
|
|
76
76
|
annet/generators/partial.py,sha256=XI01KDA--XwjSEU33SOQCCJZRXFq5boRz1uJA8lVA1g,3502
|
|
77
|
-
annet/generators/perf.py,sha256=
|
|
77
|
+
annet/generators/perf.py,sha256=K72ivUuXbNXrsHrLeKWhGmczGYWsB7kUDdDzqOX6j3c,2370
|
|
78
78
|
annet/generators/ref.py,sha256=QVdeL8po1D0kBsVLOpCjFR81D8yNTk-kaQj5WUM4hng,438
|
|
79
79
|
annet/generators/result.py,sha256=boMG4mwvitBLlHdPM8rPOqlKPrrNAqdV6NAM9wwIZHc,4765
|
|
80
80
|
annet/generators/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -128,10 +128,10 @@ annet/rulebook/texts/routeros.rul,sha256=ipfxjj0mjFef6IsUlupqx4BY_Je_OUb8u_U1019
|
|
|
128
128
|
annet_generators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
129
129
|
annet_generators/example/__init__.py,sha256=zVd8_DrXuOASrNzg2Ab94rPyvJff83L-_HppDFxnUjM,228
|
|
130
130
|
annet_generators/example/lldp.py,sha256=68CLrK7vxTQQy9XIBxtywuEdBNlIlfXGYj8_wYWs5UI,1146
|
|
131
|
-
annet-0.12.
|
|
132
|
-
annet-0.12.
|
|
133
|
-
annet-0.12.
|
|
134
|
-
annet-0.12.
|
|
135
|
-
annet-0.12.
|
|
136
|
-
annet-0.12.
|
|
137
|
-
annet-0.12.
|
|
131
|
+
annet-0.12.5.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
|
|
132
|
+
annet-0.12.5.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
|
|
133
|
+
annet-0.12.5.dist-info/METADATA,sha256=kFuaps_0RVxV1AnE5VK3Q1wwCl7p21QD5t1MzJZVp74,694
|
|
134
|
+
annet-0.12.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
135
|
+
annet-0.12.5.dist-info/entry_points.txt,sha256=yHimujIzR2bwNIbb--MTs_GpXiAve89Egpu2LlgTEkg,119
|
|
136
|
+
annet-0.12.5.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
|
|
137
|
+
annet-0.12.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|