package reference

Config

pyhectiqlab.Config

classConfig(**kwargs)
Initialize a configuration object. Returns a Config.

Parameters

PropertyTypeDefaultDescription
**kwargs-Any type of iterable parameter
@classmethodConfig.from_dict(data: dict)
Initialize a configuration object with the content of a dictionary. Returns a Config.

Parameters

PropertyTypeDefaultDescription
datadict-A dictionary object with the data
@staticmethodConfig.download(run: str, project: str)
Download the config object and the meta informations from an existing run. Returns a tuple with the (Config, dict)

Parameters

PropertyTypeDefaultDescription
runstr-The slugified run name
projectstr-The project name
@classmethodConfig.load(path: str)
Load the config from a json format on your machine. Returns a Config object.

Parameters

PropertyTypeDefaultDescription
pathstr-Local path to the config dump.
Config.lock()
Disable the settings attributes. The config becomes immuable.
Config.unlock()
Enable settings the attributes. The config becomes muable.
Config.save(path: str)
Write the config in a json format on your local drive.

Parameters

PropertyTypeDefaultDescription
pathstr-Local path to the config dump.

Config Template

pyhectiqlab.ConfigTemplate

@classmethodConfigTemplate.help()
Print in a json format the description to initialize the object.
@classmethodConfigTemplate.to_config(store_description: bool = False)
Initialize a configuration object with the attributes of the objet. Returns a Config.

Parameters

PropertyTypeDefaultDescription
store_descriptionboolFalseSet to true to store the parameters description into `__help__`