aplos-nca-saas-sdk 0.0.24__py3-none-any.whl → 0.0.25__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.
@@ -26,8 +26,7 @@ class EnvironmentServices:
26
26
 
27
27
  if not starting_path:
28
28
  starting_path = __file__
29
-
30
-
29
+
31
30
  environment_file: str | None = self.find_file(
32
31
  starting_path=starting_path,
33
32
  file_name=file_name,
@@ -58,17 +57,15 @@ class EnvironmentServices:
58
57
 
59
58
  return event
60
59
 
61
-
62
-
63
60
  def find_module_path(
64
61
  self,
65
62
  starting_path: str | None = None,
66
63
  raise_error_if_not_found: bool = True,
67
64
  ) -> str | None:
68
65
  """From a given starting point, move up the directory chain until you find the modules root"""
69
-
66
+
70
67
  starting_path = starting_path or __file__
71
- parents = len(starting_path.split(os.sep)) -1
68
+ parents = len(starting_path.split(os.sep)) - 1
72
69
  MODULE_ROOT = "aplos_nca_saas_sdk" # pylint: disable=c0103
73
70
  paths: List[str] = []
74
71
  for parent in range(parents):
@@ -92,9 +89,9 @@ class EnvironmentServices:
92
89
  self, starting_path: str, file_name: str, raise_error_if_not_found: bool = True
93
90
  ) -> str | None:
94
91
  """Searches the project directory structure for a file"""
95
-
92
+
96
93
  starting_path = starting_path or __file__
97
- parents = len(starting_path.split(os.sep)) -1
94
+ parents = len(starting_path.split(os.sep)) - 1
98
95
  paths: List[str] = []
99
96
  for parent in range(parents):
100
97
  try:
@@ -107,8 +104,7 @@ class EnvironmentServices:
107
104
  except Exception as e:
108
105
  print(f"Error {str(e)}")
109
106
  print(f"Failed to find the file: {file_name}.")
110
- print(f'Searched: {"\n".join(paths)}.')
111
-
107
+ self.__print_paths(paths)
112
108
 
113
109
  if raise_error_if_not_found:
114
110
  searched_paths = "\n".join(paths)
@@ -116,4 +112,10 @@ class EnvironmentServices:
116
112
  f"Failed to locate environment file: {file_name} in: \n {searched_paths}"
117
113
  )
118
114
 
119
- return None
115
+ return None
116
+
117
+ def __print_paths(self, paths: List[str]):
118
+ """Prints the paths"""
119
+ print("Searched Paths:")
120
+ for path in paths:
121
+ print(f"\t{path}")
@@ -1,4 +1,4 @@
1
1
  # Aplos NCA SaaS SDK Version File
2
2
  # This is automatically generated during the build process.
3
3
  # DO NOT UPDATE IT DIRECTLY. IT WILL BE OVERWRITTEN.
4
- __version__ = '0.0.24'
4
+ __version__ = '0.0.25'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aplos_nca_saas_sdk
3
- Version: 0.0.24
3
+ Version: 0.0.25
4
4
  Summary: Aplos NCA SaaS SDK
5
5
  Project-URL: Homepage, https://aplosanalytics.com/
6
6
  Project-URL: Documentation, https://docs.aplosanalytics.com/
@@ -1,6 +1,6 @@
1
1
  aplos_nca_saas_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  aplos_nca_saas_sdk/run_analysis_execution.py,sha256=H425VMCtxIX1vlWac0Wex2CJXVzQQwgv5AGNCpaVqN4,4446
3
- aplos_nca_saas_sdk/version.py,sha256=VXhxq2KBBxSTjGA5lIw5x1NtuFQBxEFFmPDvlV3AQn0,172
3
+ aplos_nca_saas_sdk/version.py,sha256=TIqMesG9fBSK0ycgCPC1gCQJEUrNSi7ilaGAXtBTY2M,172
4
4
  aplos_nca_saas_sdk/integration_testing/example_main.py,sha256=9SXu8s7B4MLe53WDkr0GuMu8h4oyfmltYOH1XT_fqC4,2500
5
5
  aplos_nca_saas_sdk/integration_testing/integration_test_base.py,sha256=ci3oOfz_McdDKGSrqOHF7F_vrvgTWo7HzxydNdPSHLs,2787
6
6
  aplos_nca_saas_sdk/integration_testing/integration_test_configurations.py,sha256=GRDHSy0ZiAJtZQvL7uPlYG2oYVo9nWlP7hNZbNnrz7U,1900
@@ -42,11 +42,11 @@ aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/config.json,sha256=lLnR
42
42
  aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/input.csv,sha256=qFSAlgLOmERsabMmp1X6PAZa-8yFthZlHacM_f7_AOY,6528
43
43
  aplos_nca_saas_sdk/sample_files/analysis_files/single_ev/meta_data.json,sha256=p1KYOAe5Cl3rjtfF1t96oRG-QtFJJCo9otReRPNtvIk,447
44
44
  aplos_nca_saas_sdk/utilities/commandline_args.py,sha256=iia2g0sdPfg637GV8PuddRNUAtg46GdmlDx4OJ0iS-s,10242
45
- aplos_nca_saas_sdk/utilities/environment_services.py,sha256=dCdUSL1GAzvCVLpkgRLnG3Z-h5wAi27SldeQHvH007o,3746
45
+ aplos_nca_saas_sdk/utilities/environment_services.py,sha256=xuwywZLIifWW2Eb-IbT4wQfXXiDdPXsPv70iViq4lhs,3833
46
46
  aplos_nca_saas_sdk/utilities/environment_vars.py,sha256=aXheFXg6FVMaSYLe2LmoWRF5Ks9vwxDazO4XYb4vLjc,1132
47
47
  aplos_nca_saas_sdk/utilities/file_utility.py,sha256=J4cN0zizcA-oZnALu1ICiImi_KcIzN1yQ0Bj0lfpeX4,1364
48
48
  aplos_nca_saas_sdk/utilities/http_utility.py,sha256=DQ-ClLOmNoyPn5vhrSh4q-2wi4ViP_gplJD9asEKDM8,464
49
- aplos_nca_saas_sdk-0.0.24.dist-info/METADATA,sha256=rrw6LHlnlYnRLrgB81u1nJX-QYsdcZT_BzJVv9rnBo0,3792
50
- aplos_nca_saas_sdk-0.0.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
51
- aplos_nca_saas_sdk-0.0.24.dist-info/licenses/LICENSE,sha256=JQMpBrnqu_m2tISmyh6_dTgb8-m3HNnA51fuOh2TzkE,1076
52
- aplos_nca_saas_sdk-0.0.24.dist-info/RECORD,,
49
+ aplos_nca_saas_sdk-0.0.25.dist-info/METADATA,sha256=yFFnxMwG5Rmnr6N-LMn3X30m2ImjHdZqIDQ3NC1gIPQ,3792
50
+ aplos_nca_saas_sdk-0.0.25.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
51
+ aplos_nca_saas_sdk-0.0.25.dist-info/licenses/LICENSE,sha256=JQMpBrnqu_m2tISmyh6_dTgb8-m3HNnA51fuOh2TzkE,1076
52
+ aplos_nca_saas_sdk-0.0.25.dist-info/RECORD,,