Benign python Download

tietai-synthea 1.0.0

Standard Python package source code

“PySynthea - a Python-native synthetic patient population simulator”

Assigns a string replace resultPython json.load call

Evidence

Dynamically imports a Python module lines 165–169
165:32… 'synthea.modules.core.{module_name}'
166 imported = importlib.import_module(module_path)
167
168 # Find the module class in the imported module
169 for name, obj in i …
Handles a missing-module ImportError lines 175–182
175:38… keys.add(module_name)
176 break
177 except ImportError:
178 # Core module not implemented yet
179 pass
180
181 @classmethod
182 def _load_json_modules(cls, pa …
Python json.load call lines 202–219
202:12… return
203
204 # Recursively find all .json files
205 for json_file in module_path.rglob('*.json'):
206 try:
207 cls._load_json_module(json_file, module_path)
⋯5 lines
213 """Load a single JSON module."""
214 with open(filepath, 'r', encoding='utf-8') as f:
215 definition = json.load(f)
216
217 json_name = definition.get('name', filepath.stem)
218
219 # Use relative path as the canonical module identity, ma …
Assigns a string replace result lines 223–229
223:21… h = str(filepath.relative_to(base_path).with_suffix(''))
224 path_key = relative_path.replace(os.sep, '/')
225
226 def create_module():
227 return cls._create_from_json(path_key, definition)
228
229 # Register by …
Uses an excludes identifier lines 285–289
285:27… s) -> List[str]:
286 """Get list of top-level module names (excludes submodules in subdirectories).
287
288 Submodules (paths containing '/') are only executed when called via
289 CallSubmodu …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.