Skip to content

config

sgp.config.config module-attribute

config = Config(verbose=lower() in trues, password=get('SGP_PASSWORD', ''), numba_enabled=get('NUMBA_DISABLE_JIT', '0') == '0', language=value('language', name()))

sgp.config.hash_answer module-attribute

hash_answer = 13321721570126298894283598251275983911399446440051009047180632657240560200593184980628735407436356491889719107924647142670520287627685949516330329941708004

sgp.config.settings module-attribute

settings = QSettings('Hailin Wang', 'Shanghai Geotechnical Parameters')

sgp.config.trues module-attribute

trues = ['true', '1', 'yes', 'on']

sgp.config.Config

Bases: BaseModel

sgp.config.Config.validate_password classmethod

validate_password(password: str)

Validate the password is correct.

sgp.config.hash_sha512

hash_sha512(string: str) -> int

Return the hash of the string using sha512.