credmark.cmf.ipython.CmfInit
- class CmfInit(chain_id=1, block_number=None, model_loader_path=[], chain_to_provider_url={}, api_url=None, use_local_models=None, register_utility_global=True)[source]
Bases:
NamedTuple
Cmf Initialization Parameters
- Parameters
chain_id (int) – Chain id, default to 1
model_loader_path (List[str]) – List of path to the models directories
chain_to_provider_url (Dict[str, str]) – A dictionary mapping chain ID to node RPC URL, e.g. {‘1’: ‘http://192.168.68.122:10444’}
api_url (Optional[str]) – (Optional) None or URL to Credmark gateway
use_local_models (Optional[str]) – None (top-level models run local), ‘*’ (all model run locally), or ‘-’ (all models run remotely), or a comma-separated list of models
register_utility_global (bool) – True (register global variables for utilities like ledger, default) or False
Methods
Return number of occurrences of value.
Return first index of value.
Attributes
Alias for field number 4
Alias for field number 1
Alias for field number 0
Alias for field number 3
Alias for field number 2
Alias for field number 6
Alias for field number 5
- __add__(value, /)
Return self+value.
- __mul__(value, /)
Return self*value.
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.