FitConfig#

pydantic model fitrequest.fit_config.FitConfig[source]#

Bases: MethodConfigGroup

Fitrequest configuration model. Describes all information needed to generate Fitrequest’s class and methods.

Fields:
field class_docstring: str = ''#

Docstring of the generated class.

field class_name: str = 'FitRequest'#

Name of the the generated class.

classmethod from_dict(**kwargs) type[source]#

Generate a fitrequest class from a keyword arguments.

classmethod from_json(json_path: Path | str) type[source]#

Generate a fitrequest class from a json file.

classmethod from_yaml(yaml_path: Path | str) type[source]#

Generate a fitrequest class from a yaml file.

property fit_class: type#

Create new class from FitConfig.

property fit_methods: dict[str, Callable]#

Returns FitConfig generated methods.