medicafe 0.250305.0__py3-none-any.whl → 0.250305.1__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.

@@ -1,5 +1,5 @@
1
1
  #update_medicafe.py
2
- import subprocess, sys, requests, time, pkg_resources
2
+ import subprocess, sys, requests, time, pkg_resources, platform
3
3
 
4
4
  def get_installed_version(package):
5
5
  try:
@@ -112,25 +112,44 @@ def upgrade_package(package, retries=3, delay=2): # Updated retries to 3
112
112
  print("Error: All upgrade attempts failed.")
113
113
  return False
114
114
 
115
- def ensure_dependencies(requirements_file='requirements.txt'):
116
- """Ensure all dependencies listed in the requirements file are installed and up-to-date."""
117
- try:
118
- with open(requirements_file, 'r') as f:
119
- required_packages = f.read().splitlines()
120
- except IOError as e:
121
- print("Error reading requirements file '{}': {}".format(requirements_file, e))
122
- print("Using default requirements.")
123
- required_packages = [
124
- 'requests==2.21.0',
125
- 'argparse==1.4.0',
126
- 'numpy==1.11.3',
127
- 'pandas==0.20.0',
128
- 'tqdm==4.14.0',
129
- 'lxml==4.2.0',
130
- 'python-docx==0.8.11',
131
- 'PyYAML==5.2',
132
- 'chardet==3.0.4'
133
- ]
115
+ def ensure_dependencies():
116
+ """Ensure all dependencies listed in setup.py are installed and up-to-date."""
117
+ # Don't try to read requirements.txt as it won't be available after installation
118
+ # Instead, hardcode the same dependencies that are in setup.py
119
+ required_packages = [
120
+ 'requests==2.21.0',
121
+ 'argparse==1.4.0',
122
+ 'tqdm==4.14.0',
123
+ 'python-docx==0.8.11',
124
+ 'PyYAML==5.2',
125
+ 'chardet==3.0.4',
126
+ 'msal==1.26.0'
127
+ ]
128
+
129
+ # Define problematic packages for Windows XP with Python 3.4
130
+ problematic_packages = ['numpy==1.11.3', 'pandas==0.20.0', 'lxml==4.2.0']
131
+ is_windows_py34 = sys.version_info[:2] == (3, 4) and platform.system() == 'Windows'
132
+
133
+ if is_windows_py34:
134
+ print("Detected Windows with Python 3.4")
135
+ print("Please ensure the following packages are installed manually:")
136
+ for pkg in problematic_packages:
137
+ package_name, version = pkg.split('==')
138
+ try:
139
+ installed_version = pkg_resources.get_distribution(package_name).version
140
+ print("{} {} is already installed".format(package_name, installed_version))
141
+ if installed_version != version:
142
+ print("Note: Installed version ({}) differs from required ({})".format(installed_version, version))
143
+ print("If you experience issues, consider installing version {} manually".format(version))
144
+ except pkg_resources.DistributionNotFound:
145
+ print("{} is not installed".format(package_name))
146
+ print("Please install {}=={} manually using a pre-compiled wheel".format(package_name, version))
147
+ print("Download from: https://www.lfd.uci.edu/~gohlke/pythonlibs/")
148
+ print("Then run: pip install path\\to\\{}-{}-cp34-cp34m-win32.whl".format(package_name, version))
149
+ print("\nContinuing with other dependencies...")
150
+ else:
151
+ # Add problematic packages to the list for non-Windows XP environments
152
+ required_packages.extend(problematic_packages)
134
153
 
135
154
  for pkg in required_packages:
136
155
  if '==' in pkg:
@@ -139,6 +158,10 @@ def ensure_dependencies(requirements_file='requirements.txt'):
139
158
  package_name = pkg
140
159
  version = None # No specific version required
141
160
 
161
+ # Skip problematic packages on Windows XP Python 3.4
162
+ if is_windows_py34 and any(package_name in p for p in problematic_packages):
163
+ continue
164
+
142
165
  try:
143
166
  installed_version = pkg_resources.get_distribution(package_name).version
144
167
  if version and installed_version != version: # Check if installed version matches required version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: medicafe
3
- Version: 0.250305.0
3
+ Version: 0.250305.1
4
4
  Summary: MediCafe
5
5
  Home-page: https://github.com/katanada2
6
6
  Author: Daniel Vidaud
@@ -11,14 +11,17 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: requests ==2.21.0
13
13
  Requires-Dist: argparse ==1.4.0
14
- Requires-Dist: numpy ==1.11.3
15
- Requires-Dist: pandas ==0.20.0
16
14
  Requires-Dist: tqdm ==4.14.0
17
- Requires-Dist: lxml ==4.2.0
18
15
  Requires-Dist: python-docx ==0.8.11
19
16
  Requires-Dist: PyYAML ==5.2
20
17
  Requires-Dist: chardet ==3.0.4
21
18
  Requires-Dist: msal ==1.26.0
19
+ Requires-Dist: numpy ==1.11.3 ; platform_python_implementation != "CPython" or sys_platform != "win32" or python_version > "3.5"
20
+ Requires-Dist: pandas ==0.20.0 ; platform_python_implementation != "CPython" or sys_platform != "win32" or python_version > "3.5"
21
+ Requires-Dist: lxml ==4.2.0 ; platform_python_implementation != "CPython" or sys_platform != "win32" or python_version > "3.5"
22
+ Requires-Dist: numpy ==1.11.3 ; platform_python_implementation == "CPython" and sys_platform == "win32" and python_version <= "3.5" and extra == "binary"
23
+ Requires-Dist: pandas ==0.20.0 ; platform_python_implementation == "CPython" and sys_platform == "win32" and python_version <= "3.5" and extra == "binary"
24
+ Requires-Dist: lxml ==4.2.0 ; platform_python_implementation == "CPython" and sys_platform == "win32" and python_version <= "3.5" and extra == "binary"
22
25
 
23
26
 
24
27
  # Project Overview: MediCafe
@@ -32,7 +35,7 @@ Requires-Dist: msal ==1.26.0
32
35
  - **Error Handling and Logging:** MediBot aims to implement a robust error handling mechanism that can log issues and provide feedback for troubleshooting.
33
36
  - **Insurance Mode Adjustments:** The system can adjust data inputs based on specific requirements from various insurance providers, including Medicare.
34
37
  - **Diagnosis Entry Automation:** MediBot automates the extraction and entry of diagnosis codes from surgical schedules into Medisoft.
35
- - **Script Efficiency:** The module enhances the efficiency of scripts handling Medisofts quirks, such as fields that are skipped or require special navigation.
38
+ - **Script Efficiency:** The module enhances the efficiency of scripts handling Medisoft's quirks, such as fields that are skipped or require special navigation.
36
39
  - **User Interface (UI) Enhancements:** Plans to develop a graphical user interface to help non-technical users manage and execute scripts more easily.
37
40
  - **Documentation and Support:** Comprehensive documentation and support channels are being established to assist users in setup, configuration, and troubleshooting.
38
41
 
@@ -12,7 +12,7 @@ MediBot/MediPost.py,sha256=C1hZJFr65rN6F_dckjdBxFC0vL2CoqY9W3YFqU5HXtE,336
12
12
  MediBot/PDF_to_CSV_Cleaner.py,sha256=ZZphmq-5K04DkrZNlcwNAIoZPOD_ROWvS3PMkKFxeiM,8799
13
13
  MediBot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  MediBot/update_json.py,sha256=9FJZb-32EujpKuSoCjyCbdTdthOIuhcMoN4Wchuzn8A,2508
15
- MediBot/update_medicafe.py,sha256=CxFpAUjWVB8IRkoNaTsQ1KoL4Eu99ahwXvOmf9Hv_N8,10350
15
+ MediBot/update_medicafe.py,sha256=rx1zUvCI99JRdr8c1csMGI2uJBl3pqusvX-xr3KhmR4,11881
16
16
  MediLink/MediLink.py,sha256=G1xuHUKnCrEsKdY4RjHm7a472lShtv_gZC6rffEYzCk,21581
17
17
  MediLink/MediLink_277_decoder.py,sha256=Z3hQK2j-YzdXjov6aDlDRc7M_auFBnl3se4OF5q6_04,4358
18
18
  MediLink/MediLink_837p_encoder.py,sha256=id2qhKUYq_raKcDr5pAY1xF0V_UR5KBC8SXDAeh6QpU,24807
@@ -41,8 +41,8 @@ MediLink/MediLink_batch.bat,sha256=nqL5QwCLyRQFSPdv6kgtcV_cpky7FXSOWVl6OxjRXb4,1
41
41
  MediLink/Soumit_api.py,sha256=5JfOecK98ZC6NpZklZW2AkOzkjvrbYxpJpZNH3rFxDw,497
42
42
  MediLink/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
43
  MediLink/test.py,sha256=kSvvJRL_3fWuNS3_x4hToOnUljGLoeEw6SUTHQWQRJk,3108
44
- medicafe-0.250305.0.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
45
- medicafe-0.250305.0.dist-info/METADATA,sha256=RZRj084e_VOXoGh4qeUWSWMUNoisUPnuqekg17wngu8,4713
46
- medicafe-0.250305.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
47
- medicafe-0.250305.0.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
48
- medicafe-0.250305.0.dist-info/RECORD,,
44
+ medicafe-0.250305.1.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
45
+ medicafe-0.250305.1.dist-info/METADATA,sha256=Hrsx8uG3I1aTLjv2MWqPB9-cYkJU5IXersvgeFiA7m4,5472
46
+ medicafe-0.250305.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
47
+ medicafe-0.250305.1.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
48
+ medicafe-0.250305.1.dist-info/RECORD,,