trestle.common.load_validate
trestle.common.load_validate ¤
Function to load and validate files while avoiding circular imports.
Attributes¤
logger = logging.getLogger(__name__) module-attribute ¤
Classes¤
Functions¤
load_validate_model_name(trestle_root, model_name, model_class, file_content_type=None) ¤
Load a model by its name and type and validate it.
Source code in trestle/common/load_validate.py
42 43 44 45 46 47 48 49 50 51 | |
load_validate_model_path(trestle_root, model_path) ¤
Load a model by its path and validate it.
Source code in trestle/common/load_validate.py
32 33 34 35 36 37 38 39 | |
handler: python