medicafe 0.250725.4__py3-none-any.whl → 0.250725.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 medicafe might be problematic. Click here for more details.

MediBot/MediBot.py CHANGED
@@ -33,25 +33,14 @@ def flush_console_input_buffer():
33
33
 
34
34
  def discard_leading_blank():
35
35
  """
36
- Alternative fallback that reads from stdin and discards leading newlines,
37
- then puts back the first non-newline character for the real input() call.
36
+ Alternative fallback that uses non-blocking msvcrt to drain any available input.
38
37
  """
39
38
  if sys.platform != "win32":
40
39
  return # no-op on non-Windows
41
40
 
42
- try:
43
- while True:
44
- ch = sys.stdin.read(1)
45
- if ch not in ('\r', '\n'):
46
- # put it back for the real input() call
47
- msvcrt.ungetch(ch.encode())
48
- break
49
- elif not ch: # EOF
50
- break
51
- except Exception:
52
- # If stdin.read fails, fall back to msvcrt approach
53
- while msvcrt.kbhit():
54
- msvcrt.getch()
41
+ # Use non-blocking msvcrt approach to drain any available input
42
+ while msvcrt.kbhit():
43
+ msvcrt.getch()
55
44
 
56
45
  try:
57
46
  from MediBot_Crosswalk_Library import crosswalk_update
@@ -443,7 +432,6 @@ if __name__ == "__main__":
443
432
 
444
433
  # Flush console input buffer to remove any stray CR/LF
445
434
  flush_console_input_buffer()
446
- discard_leading_blank()
447
435
 
448
436
  # Use sys.stdin.readline() for more reliable input on Windows XP
449
437
  proceed = sys.stdin.readline().lower().strip() in ['yes', 'y']
@@ -455,7 +443,6 @@ if __name__ == "__main__":
455
443
 
456
444
  # Flush console input buffer to remove any stray CR/LF
457
445
  flush_console_input_buffer()
458
- discard_leading_blank()
459
446
 
460
447
  # Use sys.stdin.readline() for more reliable input on Windows XP
461
448
  proceed = sys.stdin.readline().lower().strip() in ['yes', 'y']
MediBot/MediBot_UI.py CHANGED
@@ -39,25 +39,14 @@ def flush_console_input_buffer():
39
39
 
40
40
  def discard_leading_blank():
41
41
  """
42
- Alternative fallback that reads from stdin and discards leading newlines,
43
- then puts back the first non-newline character for the real input() call.
42
+ Alternative fallback that uses non-blocking msvcrt to drain any available input.
44
43
  """
45
44
  if sys.platform != "win32":
46
45
  return # no-op on non-Windows
47
46
 
48
- try:
49
- while True:
50
- ch = sys.stdin.read(1)
51
- if ch not in ('\r', '\n'):
52
- # put it back for the real input() call
53
- msvcrt.ungetch(ch.encode())
54
- break
55
- elif not ch: # EOF
56
- break
57
- except Exception:
58
- # If stdin.read fails, fall back to msvcrt approach
59
- while msvcrt.kbhit():
60
- msvcrt.getch()
47
+ # Use non-blocking msvcrt approach to drain any available input
48
+ while msvcrt.kbhit():
49
+ msvcrt.getch()
61
50
 
62
51
  class AppControl:
63
52
  def __init__(self):
@@ -195,7 +184,6 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
195
184
 
196
185
  # Flush console input buffer to remove any stray CR/LF
197
186
  flush_console_input_buffer()
198
- discard_leading_blank()
199
187
 
200
188
  # Use sys.stdin.readline() for more reliable input on Windows XP
201
189
  proceed = sys.stdin.readline().lower().strip() in ['yes', 'y']
@@ -214,7 +202,6 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
214
202
 
215
203
  # Flush console input buffer to remove any stray CR/LF
216
204
  flush_console_input_buffer()
217
- discard_leading_blank()
218
205
 
219
206
  # Use sys.stdin.readline() for more reliable input on Windows XP
220
207
  selection = sys.stdin.readline().strip()
@@ -298,7 +285,6 @@ def handle_user_interaction(interaction_mode, error_message):
298
285
 
299
286
  # Flush console input buffer to remove any stray CR/LF
300
287
  flush_console_input_buffer()
301
- discard_leading_blank()
302
288
 
303
289
  # Use sys.stdin.readline() for more reliable input on Windows XP
304
290
  choice = sys.stdin.readline().strip()
@@ -333,7 +319,6 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
333
319
 
334
320
  # Flush console input buffer to remove any stray CR/LF from script launch
335
321
  flush_console_input_buffer()
336
- discard_leading_blank()
337
322
 
338
323
  while True:
339
324
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: medicafe
3
- Version: 0.250725.4
3
+ Version: 0.250725.5
4
4
  Summary: MediCafe
5
5
  Home-page: https://github.com/katanada2
6
6
  Author: Daniel Vidaud
@@ -1,11 +1,11 @@
1
1
  MediBot/MediBot.bat,sha256=anz5i-Td1k3HhRUvkCqHsw9lBLVmO6q9bt5kLTfr1Iw,13282
2
- MediBot/MediBot.py,sha256=FhkGkwb3mgaODNKsxC3kGW-mXVBPchXyrxv3Bb8WAA0,26680
2
+ MediBot/MediBot.py,sha256=UOwqSRrirEqWG5odjIX8jglGM_thAD7IuPu8IhJ8Dao,26215
3
3
  MediBot/MediBot_Charges.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  MediBot/MediBot_Crosswalk_Library.py,sha256=Ix4QlAcg3O9Y6n6ZeSUtbmtV-_n-t0-jnefXDBFlhhI,51441
5
5
  MediBot/MediBot_Post.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  MediBot/MediBot_Preprocessor.py,sha256=Lc9uQnE5SAa0dQTOREdPV1QUB2cywXTHJ1h2w-fyeeQ,13331
7
7
  MediBot/MediBot_Preprocessor_lib.py,sha256=LXzV85uq7YoAWbZi88HzAs_GObl7vP8mhFbWZQbd0M8,45687
8
- MediBot/MediBot_UI.py,sha256=lNgBpKf8hknyyygdLl9pRtVN92B1xU3oLFXCiLmE4EE,16253
8
+ MediBot/MediBot_UI.py,sha256=MMjq6CQkxOOmqLPdki3V9wYWGN2bFxhh5niO6G23YhQ,15734
9
9
  MediBot/MediBot_dataformat_library.py,sha256=XNyeiOC6uJUp15UXP_rhtB3rMTPus9ZXDnz5zHNoRYM,8586
10
10
  MediBot/MediBot_docx_decoder.py,sha256=GbhX58pMAsWNhBF7B8AtWiNpUOB4bU0zAM81moXYkkE,27370
11
11
  MediBot/MediPost.py,sha256=C1hZJFr65rN6F_dckjdBxFC0vL2CoqY9W3YFqU5HXtE,336
@@ -49,8 +49,8 @@ MediLink/test.py,sha256=kSvvJRL_3fWuNS3_x4hToOnUljGLoeEw6SUTHQWQRJk,3108
49
49
  MediLink/test_cob_library.py,sha256=wUMv0-Y6fNsKcAs8Z9LwfmEBRO7oBzBAfWmmzwoNd1g,13841
50
50
  MediLink/test_validation.py,sha256=FJrfdUFK--xRScIzrHCg1JeGdm0uJEoRnq6CgkP2lwM,4154
51
51
  MediLink/webapp.html,sha256=JPKT559aFVBi1r42Hz7C77Jj0teZZRumPhBev8eSOLk,19806
52
- medicafe-0.250725.4.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
- medicafe-0.250725.4.dist-info/METADATA,sha256=k4oOKjaFQ9pQ4w6Q1s1gByoCQhDKFd7lGbUdrUPEgAI,5501
54
- medicafe-0.250725.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
- medicafe-0.250725.4.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
- medicafe-0.250725.4.dist-info/RECORD,,
52
+ medicafe-0.250725.5.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
+ medicafe-0.250725.5.dist-info/METADATA,sha256=nxo_ri1sqVpnGCke2lXjjP2wW7Os9BzhJAktiZT2Weo,5501
54
+ medicafe-0.250725.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
+ medicafe-0.250725.5.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
+ medicafe-0.250725.5.dist-info/RECORD,,