gomyck-tools 1.2.4__py3-none-any.whl → 1.2.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.
ctools/metrics.py CHANGED
@@ -119,15 +119,13 @@ def opt(metric_key: str, label_values: [], metric_value: int):
119
119
  _lock.release()
120
120
 
121
121
  def _init_all_metrics():
122
- Metric(MetricType.GAUGE, 'data_reported_time', ['asdasd', 'sdfsdf'], persistent=True, reset=True)
123
- Metric(MetricType.GAUGE, 'data_received_time', ['asdasd', 'sdfsdf'], persistent=True, reset=True)
124
- Metric(MetricType.GAUGE, 'data_insert_time', ['asdasd', 'sdfsdf'], persistent=True, reset=True)
122
+ Metric(MetricType.GAUGE, 'gomyck', ['g_label1', 'g_label2'], persistent=True, reset=True)
125
123
 
126
- if __name__ == '__main__':
127
- init()
128
- import random
129
- while True:
130
- opt('data_reported_time', ['123', '123'], random.randint(1, 10))
131
- opt('data_received_time', ['123', '123'], random.randint(1, 10))
132
- opt('data_insert_time', ['123', '123'], random.randint(1, 10))
133
- time.sleep(1)
124
+ # if __name__ == '__main__':
125
+ # init()
126
+ # import random
127
+ # while True:
128
+ # opt('data_reported_time', ['123', '123'], random.randint(1, 10))
129
+ # opt('data_received_time', ['123', '123'], random.randint(1, 10))
130
+ # opt('data_insert_time', ['123', '123'], random.randint(1, 10))
131
+ # time.sleep(1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gomyck-tools
3
- Version: 1.2.4
3
+ Version: 1.2.5
4
4
  Summary: A ctools for python development by hao474798383
5
5
  Home-page: https://blog.gomyck.com
6
6
  Author: gomyck
@@ -26,7 +26,7 @@ ctools/html_soup.py,sha256=rnr8M3gn3gQGo-wNaNFXDjdzp8AAkv9o4yqfIIfO-zw,1567
26
26
  ctools/http_utils.py,sha256=dG26aci1_YxAyKwYqMKFw4wZAryLkDyvnQ3hURjB6Lk,768
27
27
  ctools/images_tools.py,sha256=TapXYCPqC7GesgrALecxxa_ApuT_dxUG5fqQIJF2bNY,670
28
28
  ctools/imgDialog.py,sha256=zFeyPmpnEn9Ih7-yuJJrePqW8Myj3jC9UYMTDk-umTs,1385
29
- ctools/metrics.py,sha256=BKNtOEskq5fvSkGX1MbAO1aG9DWjBBN9PDQZ8e-zaVM,5085
29
+ ctools/metrics.py,sha256=5wC3luUmZKhDSN-0XMJzlfhk792u_tw0IBR6g3YHbHI,4893
30
30
  ctools/mqtt_utils.py,sha256=ZWSZiiNJLLlkHF95S6LmRmkYt-iIL4K73VdN3b1HaHw,10702
31
31
  ctools/obj.py,sha256=GYS1B8NyjtUIh0HlK9r8avC2eGbK2SJac4C1CGnfGhI,479
32
32
  ctools/pacth.py,sha256=MJ9Du-J9Gv62y4cZKls1jKbl5a5kL2y9bD-gzYUCveQ,2604
@@ -51,7 +51,7 @@ ctools/wordFill.py,sha256=dB1OLt6GLmWdkDV8H20VWbJmY4ggNNI8iHD1ocae2iM,875
51
51
  ctools/word_fill.py,sha256=xeo-P4DOjQUqd-o9XL3g66wQrE2diUPGwFywm8TdVyw,18210
52
52
  ctools/word_fill_entity.py,sha256=eX3G0Gy16hfGpavQSEkCIoKDdTnNgRRJrFvKliETZK8,985
53
53
  ctools/work_path.py,sha256=i4MTUobqNW2WMrT3mwEC_XYQ0_IhFmKoNpTX2W6A8Tc,1680
54
- gomyck_tools-1.2.4.dist-info/METADATA,sha256=q9kd9ZRTLTnINHKnwzRXOIcjTo8an74RmCBjW57AT0Y,1046
55
- gomyck_tools-1.2.4.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
- gomyck_tools-1.2.4.dist-info/top_level.txt,sha256=-MiIH9FYRVKp1i5_SVRkaI-71WmF1sZSRrNWFU9ls3s,7
57
- gomyck_tools-1.2.4.dist-info/RECORD,,
54
+ gomyck_tools-1.2.5.dist-info/METADATA,sha256=EkR8czXmSe8KiXedT-SxkqIKQAXelkBo4YOjoJuFkIg,1046
55
+ gomyck_tools-1.2.5.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
+ gomyck_tools-1.2.5.dist-info/top_level.txt,sha256=-MiIH9FYRVKp1i5_SVRkaI-71WmF1sZSRrNWFU9ls3s,7
57
+ gomyck_tools-1.2.5.dist-info/RECORD,,