mccode-plumber 0.17.0__py3-none-any.whl → 0.17.2__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.
@@ -33,7 +33,7 @@ class Triage:
33
33
  'info': Fore.GREEN,
34
34
  'hint': Fore.BLUE,
35
35
  'debug': Fore.WHITE + Style.BRIGHT,
36
- 'default': Fore.WHITE,
36
+ 'default': Fore.RESET,
37
37
  })
38
38
 
39
39
  def _filtered_level(self, level: str) -> bool:
@@ -306,6 +306,7 @@ def load_in_wait_load_out(
306
306
  KafkaToNexus.start(
307
307
  name='K2N',
308
308
  style=Fore.RED + Style.DIM,
309
+ triage=Triage(ignore=["ignored by this consumer instance"]),
309
310
  broker=broker,
310
311
  work=work,
311
312
  command=TOPICS['command'],
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env python3
2
+ """Small demo utility to print all styles known to the Triage class.
3
+
4
+ Run as module:
5
+ python -m mccode_plumber.manage.triage_demo
6
+
7
+ This prints a sample line for each style key defined in Triage.styles.
8
+ """
9
+ from __future__ import annotations
10
+
11
+ from colorama import init
12
+
13
+ from mccode_plumber.manage.manager import Triage
14
+
15
+
16
+ def main() -> None:
17
+ init(autoreset=True)
18
+ triage = Triage()
19
+
20
+ print("Triage styles (sample lines):")
21
+ # Print each known style with a short sample message
22
+ for level in sorted(triage.styles.keys()):
23
+ sample = f"[{level.upper()}] This is a sample {level} message."
24
+ # Use internal helper to apply style consistently with Manager output
25
+ styled = triage._style_line(level, sample)
26
+ print(styled)
27
+
28
+
29
+ if __name__ == "__main__":
30
+ main()
@@ -24,7 +24,7 @@ def monitors_to_kafka_callback_with_arguments(
24
24
 
25
25
  partial_kwargs: dict[str, Union[str,list[str]]] = {
26
26
  'broker': broker,
27
- 'delete': delete_after_sending,
27
+ 'remove': delete_after_sending,
28
28
  }
29
29
  if topic is not None and source is not None and names is not None and len(names) > 1:
30
30
  raise ValueError("Cannot specify both topic/source and multiple names simultaneously.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mccode-plumber
3
- Version: 0.17.0
3
+ Version: 0.17.2
4
4
  Author-email: Gregory Tucker <gregory.tucker@ess.eu>
5
5
  Classifier: License :: OSI Approved :: BSD License
6
6
  Classifier: Programming Language :: Python :: 3
@@ -12,9 +12,9 @@ Description-Content-Type: text/markdown
12
12
  Requires-Dist: p4p
13
13
  Requires-Dist: kafka-python>=2.2.11
14
14
  Requires-Dist: ess-streaming-data-types>=0.14.0
15
- Requires-Dist: restage>=0.10.1
15
+ Requires-Dist: restage>=0.10.2
16
16
  Requires-Dist: mccode-to-kafka>=0.5.0
17
- Requires-Dist: moreniius>=0.7.0
17
+ Requires-Dist: moreniius>=0.8.0
18
18
  Requires-Dist: icecream
19
19
  Requires-Dist: ephemeral-port-reserve
20
20
  Provides-Extra: test
@@ -5,7 +5,7 @@ mccode_plumber/epics_watcher.py,sha256=Jiz761A5NfoUzJ6ZzBGg8_BewFTmHDo5qYgh_DZHx
5
5
  mccode_plumber/forwarder.py,sha256=Nccjof4GydaZLFyk_Ij9xBXy8QUpGigOV6lOPGw0PAQ,4513
6
6
  mccode_plumber/kafka.py,sha256=1BVTsGmiFJPkl-5RVJbkLm68AKRCp2NyngPjMcSutBs,2501
7
7
  mccode_plumber/mccode.py,sha256=vc4Gb5WhdOfuDRjEejU3Flps0C2A60sfFbMrxmKLhn0,2189
8
- mccode_plumber/splitrun.py,sha256=kJShCw1Cd_QawAeHooxa79XimtslLeWxeuJ3W4clsKk,2424
8
+ mccode_plumber/splitrun.py,sha256=IeTSrMZCLTb7C-0DulvvAUmexHlOr9GBV-Co2AmPOqg,2424
9
9
  mccode_plumber/utils.py,sha256=E8NoGo_3Z-pPEpzicVGSWfQOX8p3eR-GxElT33-kX5U,2167
10
10
  mccode_plumber/writer.py,sha256=uNU1nICANNbB-gTa2WKptfls6tzmoHkUIdzmIeaFWXE,21569
11
11
  mccode_plumber/file_writer_control/CommandChannel.py,sha256=Ge5O71tZqpPmgcyYVcQe6XnxkE9r71Tf3he1ndvOFlQ,9038
@@ -26,11 +26,12 @@ mccode_plumber/manage/efu.py,sha256=y4V-LBQ9Xt5YATEfW0XkZ9KcPGo230-5BIemthSaMD8,
26
26
  mccode_plumber/manage/ensure.py,sha256=rS1kjUGhbks42_jsAZ2GjnhzJmpYqn59h6y3HJgshLs,3166
27
27
  mccode_plumber/manage/epics.py,sha256=oQt_hL-7KgtI9Kmwyw8L7a7RxQe7YJWRbmHnKIqMLpQ,1310
28
28
  mccode_plumber/manage/forwarder.py,sha256=stDKEVVfepCOqs5vBCVepaO3d63KJT-6okxooIl9dGs,3136
29
- mccode_plumber/manage/manager.py,sha256=oQal8gmVqWy2Qd9BjTRZEliRkRzWjZbG6wtPD3__EX0,6762
30
- mccode_plumber/manage/orchestrate.py,sha256=knODbPBgSZNSCCpBjqc6yiSivWQGQMMLHidShVu-aCc,18323
29
+ mccode_plumber/manage/manager.py,sha256=H0mnHe7XOXundafkee75cBhMytUciw_-h2bgplhfq1Q,6762
30
+ mccode_plumber/manage/orchestrate.py,sha256=XA5A0AtfcIrT_3fBlrFOcBwtdmLUr0wIfTbP2dqKMQI,18404
31
+ mccode_plumber/manage/triage_demo.py,sha256=dNBKYpV0_9IUr8gzpzDFZa9VxuDcMcsAStTDeQ4y7t4,824
31
32
  mccode_plumber/manage/writer.py,sha256=SEv1U14L01Y9-BcaJKPei4Ah2LFfwexDy9FTjpvtSEs,2245
32
- mccode_plumber-0.17.0.dist-info/METADATA,sha256=0erkj44mHc3c9oyNUArbp16YA2BOaWfLMAcn6Pyr8Qk,957
33
- mccode_plumber-0.17.0.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
34
- mccode_plumber-0.17.0.dist-info/entry_points.txt,sha256=k3LDo_9HG2v4-IgMYlNukphdMmaAT6zkJZYaB1zJh3c,900
35
- mccode_plumber-0.17.0.dist-info/top_level.txt,sha256=kCCIpYtKHCKWxiPEqX9J1UaGEm-ze0Qb-cemBCEPhDA,15
36
- mccode_plumber-0.17.0.dist-info/RECORD,,
33
+ mccode_plumber-0.17.2.dist-info/METADATA,sha256=Mq2vb3jqFH_b5G6FpC7dlmBJbt-ioBaDhA22DF2T7io,957
34
+ mccode_plumber-0.17.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
35
+ mccode_plumber-0.17.2.dist-info/entry_points.txt,sha256=k3LDo_9HG2v4-IgMYlNukphdMmaAT6zkJZYaB1zJh3c,900
36
+ mccode_plumber-0.17.2.dist-info/top_level.txt,sha256=kCCIpYtKHCKWxiPEqX9J1UaGEm-ze0Qb-cemBCEPhDA,15
37
+ mccode_plumber-0.17.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.1)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5