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
  • default_whatsminer_password
  • default_innosilicon_password
  • default_antminer_password
  • default_bosminer_password
  • default_vnish_password
  • default_goldshell_password
  • socket_linger_time

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