Module core.repo.global_config¶
Global config for the ZenML installation.
Classes¶
GlobalConfig(*args, **kwargs)
: Class definition for the global config.
This is a Singleton class.
Args:
*args:
**kwargs:
### Ancestors (in MRO)
* builtins.dict
### Static methods
`get_config_dir()`
: Gets config dir.
`get_instance()`
: Static method to fetch the current instance.
### Methods
`create_user_id(self)`
: Creates user_id if it does not exist.
`get_analytics_opt_in(self) ‑> bool`
: Gets user_id from config. If not present, creates a new one.
`get_user_id(self)`
: Gets user_id from config. If not present, creates a new one.
`load(self)`
: Load from YAML file.
`save(self)`
: Save current config to YAML file
`set_analytics_opt_in(self, toggle: bool)`
: Set opt-in flag for analytics