Skip to content

pyasic

settings

All settings here are global settings for all of pyasic. Set these settings with update(key, value).

Settings options:

  • network_ping_retries
  • network_ping_timeout
  • network_scan_threads
  • factory_get_retries
  • factory_get_timeout
  • get_data_retries
  • api_function_timeout
  • antminer_mining_mode_as_str
  • default_whatsminer_rpc_password
  • default_innosilicon_web_password
  • default_antminer_web_password
  • default_bosminer_web_password
  • default_vnish_web_password
  • default_goldshell_web_password
  • default_auradine_web_password
  • default_epic_web_password
  • default_hive_web_password
  • default_antminer_ssh_password
  • default_bosminer_ssh_password

get

Source code in pyasic/settings/__init__.py
def get(key: str, other: Any = None) -> Any:
    return _settings.get(key, other)

update

Source code in pyasic/settings/__init__.py
def update(key: str, val: Any) -> Any:
    _settings[key] = val