carbatpy.helpers.json_yaml_attribute_store_load

Read and load an instance of a class from/to a file

from chatgpt

Created on Thu Jul 25 13:40:23 2024

@author: atakan

Classes

MyClass

Functions

save_instance_to_file(instance, file_path)

load_instance_from_file(instance, file_path)

Module Contents

carbatpy.helpers.json_yaml_attribute_store_load.save_instance_to_file(instance, file_path)[source]
carbatpy.helpers.json_yaml_attribute_store_load.load_instance_from_file(instance, file_path)[source]
class carbatpy.helpers.json_yaml_attribute_store_load.MyClass(name, age, occupation)[source]
name[source]
age[source]
occupation[source]
additional_info[source]