medicafe 0.250806.1__py3-none-any.whl → 0.250806.4__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.bat +17 -1
- MediCafe/migration_helpers.py +9 -9
- MediCafe/smart_import.py +17 -17
- {medicafe-0.250806.1.dist-info → medicafe-0.250806.4.dist-info}/METADATA +1 -1
- {medicafe-0.250806.1.dist-info → medicafe-0.250806.4.dist-info}/RECORD +9 -9
- {medicafe-0.250806.1.dist-info → medicafe-0.250806.4.dist-info}/LICENSE +0 -0
- {medicafe-0.250806.1.dist-info → medicafe-0.250806.4.dist-info}/WHEEL +0 -0
- {medicafe-0.250806.1.dist-info → medicafe-0.250806.4.dist-info}/entry_points.txt +0 -0
- {medicafe-0.250806.1.dist-info → medicafe-0.250806.4.dist-info}/top_level.txt +0 -0
MediBot/MediBot.bat
CHANGED
|
@@ -529,7 +529,23 @@ cls
|
|
|
529
529
|
echo Clearing Python cache for MediCafe...
|
|
530
530
|
echo.
|
|
531
531
|
cd /d "%~dp0.."
|
|
532
|
-
|
|
532
|
+
|
|
533
|
+
:: Check if update_medicafe.py exists in the moved location first
|
|
534
|
+
if exist "F:\Medibot\update_medicafe.py" (
|
|
535
|
+
echo Found update_medicafe.py in F:\Medibot\ - using moved location
|
|
536
|
+
python "F:\Medibot\update_medicafe.py" --clear-cache
|
|
537
|
+
) else if exist "MediBot\update_medicafe.py" (
|
|
538
|
+
echo Found update_medicafe.py in original location - using relative path
|
|
539
|
+
python "MediBot\update_medicafe.py" --clear-cache
|
|
540
|
+
) else (
|
|
541
|
+
echo ERROR: update_medicafe.py not found in either location
|
|
542
|
+
echo Expected locations:
|
|
543
|
+
echo - F:\Medibot\update_medicafe.py
|
|
544
|
+
echo - MediBot\update_medicafe.py
|
|
545
|
+
pause
|
|
546
|
+
goto main_menu
|
|
547
|
+
)
|
|
548
|
+
|
|
533
549
|
if errorlevel 1 (
|
|
534
550
|
echo Cache clearing failed.
|
|
535
551
|
pause
|
MediCafe/migration_helpers.py
CHANGED
|
@@ -27,7 +27,7 @@ import importlib
|
|
|
27
27
|
# from pathlib import Path # Replaced with os.path for Python 3.4.4 compatibility
|
|
28
28
|
import warnings
|
|
29
29
|
|
|
30
|
-
def analyze_module_imports(file_path
|
|
30
|
+
def analyze_module_imports(file_path):
|
|
31
31
|
"""Analyze the import statements in a Python module."""
|
|
32
32
|
try:
|
|
33
33
|
with open(file_path, 'r', encoding='utf-8') as f:
|
|
@@ -85,7 +85,7 @@ def analyze_module_imports(file_path: str) -> Dict[str, Any]:
|
|
|
85
85
|
'migration_complexity': _assess_migration_complexity(imports)
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
def _categorize_import(module_name
|
|
88
|
+
def _categorize_import(module_name, imports, names=None):
|
|
89
89
|
"""Categorize an import based on the module name."""
|
|
90
90
|
import_info = {
|
|
91
91
|
'module': module_name,
|
|
@@ -107,7 +107,7 @@ def _categorize_import(module_name: str, imports: Dict, names: Optional[List] =
|
|
|
107
107
|
|
|
108
108
|
return imports
|
|
109
109
|
|
|
110
|
-
def _generate_smart_import_suggestions(imports
|
|
110
|
+
def _generate_smart_import_suggestions(imports):
|
|
111
111
|
"""Generate suggestions for using smart import system."""
|
|
112
112
|
suggestions = []
|
|
113
113
|
|
|
@@ -164,7 +164,7 @@ def _assess_migration_complexity(imports: Dict) -> str:
|
|
|
164
164
|
else:
|
|
165
165
|
return 'high'
|
|
166
166
|
|
|
167
|
-
def suggest_migration(file_path
|
|
167
|
+
def suggest_migration(file_path):
|
|
168
168
|
"""Generate detailed migration suggestions for a module."""
|
|
169
169
|
analysis = analyze_module_imports(file_path)
|
|
170
170
|
|
|
@@ -196,7 +196,7 @@ def suggest_migration(file_path: str) -> Dict[str, Any]:
|
|
|
196
196
|
'estimated_effort': _estimate_migration_effort(analysis)
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
def _determine_module_type(file_path
|
|
199
|
+
def _determine_module_type(file_path):
|
|
200
200
|
"""Determine the appropriate module type based on file path and name."""
|
|
201
201
|
file_name = os.path.basename(file_path).lower()
|
|
202
202
|
|
|
@@ -247,7 +247,7 @@ logging_config = components.get('logging_config')
|
|
|
247
247
|
"""
|
|
248
248
|
return example.strip()
|
|
249
249
|
|
|
250
|
-
def _generate_component_suggestions(analysis
|
|
250
|
+
def _generate_component_suggestions(analysis):
|
|
251
251
|
"""Generate specific component-level suggestions."""
|
|
252
252
|
suggestions = []
|
|
253
253
|
|
|
@@ -299,7 +299,7 @@ def _estimate_migration_effort(analysis: Dict) -> str:
|
|
|
299
299
|
else:
|
|
300
300
|
return 'Significant (> 60 minutes)'
|
|
301
301
|
|
|
302
|
-
def validate_smart_import_system()
|
|
302
|
+
def validate_smart_import_system():
|
|
303
303
|
"""Validate the smart import system functionality."""
|
|
304
304
|
results = {
|
|
305
305
|
'system_available': False,
|
|
@@ -341,7 +341,7 @@ def validate_smart_import_system() -> Dict[str, Any]:
|
|
|
341
341
|
|
|
342
342
|
return results
|
|
343
343
|
|
|
344
|
-
def batch_analyze_directory(directory
|
|
344
|
+
def batch_analyze_directory(directory, pattern="*.py"):
|
|
345
345
|
"""Analyze all Python files in a directory for migration opportunities."""
|
|
346
346
|
directory_path = directory
|
|
347
347
|
|
|
@@ -378,7 +378,7 @@ def batch_analyze_directory(directory: str, pattern: str = "*.py") -> Dict[str,
|
|
|
378
378
|
|
|
379
379
|
return results
|
|
380
380
|
|
|
381
|
-
def generate_migration_report(directories
|
|
381
|
+
def generate_migration_report(directories):
|
|
382
382
|
"""Generate a comprehensive migration report for multiple directories."""
|
|
383
383
|
report_lines = [
|
|
384
384
|
"MediCafe Smart Import System - Migration Report",
|
MediCafe/smart_import.py
CHANGED
|
@@ -34,17 +34,17 @@ import os
|
|
|
34
34
|
import warnings
|
|
35
35
|
|
|
36
36
|
# Define typing aliases for Python 3.4.4 compatibility
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
# Removed typing import to prevent subscriptable type errors in Python 3.4
|
|
38
|
+
# from typing import Any, Dict, List, Optional, Union, Tuple, Set # Removed for Python 3.4.4 compatibility
|
|
39
|
+
|
|
40
|
+
# Python 3.4.4 compatibility - define as basic types
|
|
41
|
+
Any = object
|
|
42
|
+
Dict = dict
|
|
43
|
+
List = list
|
|
44
|
+
Optional = object
|
|
45
|
+
Union = object
|
|
46
|
+
Tuple = tuple
|
|
47
|
+
Set = set
|
|
48
48
|
|
|
49
49
|
class ComponentRegistry:
|
|
50
50
|
"""Registry for managing all available components and their dependencies."""
|
|
@@ -261,7 +261,7 @@ class ComponentProvider:
|
|
|
261
261
|
results.append(component)
|
|
262
262
|
return tuple(results)
|
|
263
263
|
|
|
264
|
-
def for_module(self, module_type
|
|
264
|
+
def for_module(self, module_type, silent_fail=False):
|
|
265
265
|
"""Get all components needed for a specific module type."""
|
|
266
266
|
if module_type not in self.registry._module_configs:
|
|
267
267
|
available_types = list(self.registry._module_configs.keys())
|
|
@@ -296,19 +296,19 @@ class ComponentProvider:
|
|
|
296
296
|
|
|
297
297
|
return components
|
|
298
298
|
|
|
299
|
-
def get_api_suite(self)
|
|
299
|
+
def get_api_suite(self):
|
|
300
300
|
"""Get the complete API access suite."""
|
|
301
301
|
return self.for_module('general_api_access')
|
|
302
302
|
|
|
303
|
-
def get_medibot_suite(self, module_type
|
|
303
|
+
def get_medibot_suite(self, module_type='medibot_preprocessor'):
|
|
304
304
|
"""Get components specifically for MediBot operations."""
|
|
305
305
|
return self.for_module(module_type)
|
|
306
306
|
|
|
307
|
-
def get_medilink_suite(self, module_type
|
|
307
|
+
def get_medilink_suite(self, module_type='medilink_main'):
|
|
308
308
|
"""Get components specifically for MediLink operations."""
|
|
309
309
|
return self.for_module(module_type)
|
|
310
310
|
|
|
311
|
-
def list_available_components(self)
|
|
311
|
+
def list_available_components(self):
|
|
312
312
|
"""List all available component names."""
|
|
313
313
|
# Get component mappings from registry's _load_component method
|
|
314
314
|
component_mappings = {
|
|
@@ -327,7 +327,7 @@ class ComponentProvider:
|
|
|
327
327
|
}
|
|
328
328
|
return sorted(list(component_mappings))
|
|
329
329
|
|
|
330
|
-
def list_available_module_types(self)
|
|
330
|
+
def list_available_module_types(self):
|
|
331
331
|
"""List all available module type configurations."""
|
|
332
332
|
return sorted(list(self.registry._module_configs.keys()))
|
|
333
333
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
MediBot/MediBot.bat,sha256=
|
|
1
|
+
MediBot/MediBot.bat,sha256=h2CMYkTtZw_-kC0yintP94srAD6cx6PTwGDJD4PdAQQ,23298
|
|
2
2
|
MediBot/MediBot.py,sha256=E1vE8AskTFf5lp8GVaJKXOUyKZTbi6t01f1taJmMwVQ,28779
|
|
3
3
|
MediBot/MediBot_Charges.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
MediBot/MediBot_Crosswalk_Library.py,sha256=X-lo8bvT-vmCqbrKFi_ApmVI6wQs53mz1ygyVeCf1SI,23463
|
|
@@ -27,8 +27,8 @@ MediCafe/core_utils.py,sha256=VtNtEwBDhjJjQQJJrW90nkU7TFynqYmDXfk29lnV_h4,15821
|
|
|
27
27
|
MediCafe/graphql_utils.py,sha256=5i_pNCNRUXox2v5zraPzUw4n7rUt9ZEAkLqVa59LWAc,45713
|
|
28
28
|
MediCafe/logging_config.py,sha256=UDyHndq_I1y4jYvPH5vY-5zEPme-mt43kFCBVKNkBgk,4535
|
|
29
29
|
MediCafe/logging_demo.py,sha256=TwUhzafna5pMdN3zSKGrpUWRqX96F1JGGsSUtr3dygs,1975
|
|
30
|
-
MediCafe/migration_helpers.py,sha256=
|
|
31
|
-
MediCafe/smart_import.py,sha256=
|
|
30
|
+
MediCafe/migration_helpers.py,sha256=48GnP4xcgvDNNlzoWsKASCpF4H0KnyveHPbz6kjQy50,17737
|
|
31
|
+
MediCafe/smart_import.py,sha256=23pttO7QTZyvOP9HR9czDIv7lUsE1sHaE2CWC94Xxxo,19800
|
|
32
32
|
MediLink/MediLink.py,sha256=p91MYghOCbNf3ikTzm5P9V1Luj035yd83EDbQ-Ov6oM,33258
|
|
33
33
|
MediLink/MediLink_277_decoder.py,sha256=Z3hQK2j-YzdXjov6aDlDRc7M_auFBnl3se4OF5q6_04,4358
|
|
34
34
|
MediLink/MediLink_837p_cob_library.py,sha256=sK43fwq-arTUyrwbYWfJIhwW6aemXmpS2F1kfXFPe9I,29851
|
|
@@ -73,9 +73,9 @@ MediLink/test_cob_library.py,sha256=wUMv0-Y6fNsKcAs8Z9LwfmEBRO7oBzBAfWmmzwoNd1g,
|
|
|
73
73
|
MediLink/test_timing.py,sha256=yH2b8QPLDlp1Zy5AhgtjzjnDHNGhAD16ZtXtZzzESZw,2042
|
|
74
74
|
MediLink/test_validation.py,sha256=FJrfdUFK--xRScIzrHCg1JeGdm0uJEoRnq6CgkP2lwM,4154
|
|
75
75
|
MediLink/webapp.html,sha256=JPKT559aFVBi1r42Hz7C77Jj0teZZRumPhBev8eSOLk,19806
|
|
76
|
-
medicafe-0.250806.
|
|
77
|
-
medicafe-0.250806.
|
|
78
|
-
medicafe-0.250806.
|
|
79
|
-
medicafe-0.250806.
|
|
80
|
-
medicafe-0.250806.
|
|
81
|
-
medicafe-0.250806.
|
|
76
|
+
medicafe-0.250806.4.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
|
|
77
|
+
medicafe-0.250806.4.dist-info/METADATA,sha256=AFFyihfJh0IDpUj63EABmsmS5zCLGtuiv10ccODpSFs,5501
|
|
78
|
+
medicafe-0.250806.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
79
|
+
medicafe-0.250806.4.dist-info/entry_points.txt,sha256=m3RBUBjr-xRwEkKJ5W4a7NlqHZP_1rllGtjZnrRqKe8,52
|
|
80
|
+
medicafe-0.250806.4.dist-info/top_level.txt,sha256=U6-WBJ9RCEjyIs0BlzbQq_PwedCp_IV9n1616NNV5zA,26
|
|
81
|
+
medicafe-0.250806.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|