from configman.dotdict import DotDict # Create a new DotDict object my_dict = DotDict({'name': 'Alice', 'age': 27, 'address': {'city': 'New York', 'state': 'NY'}}) # Access items using dot notation print(my_dict.name) # Output: Alice print(my_dict.address.city) # Output: New York # Access items using dictionary-like notation print(my_dict['name']) # Output: Alice print(my_dict['address']['state']) # Output: NYThe `DotDict` makes it easy to manage configurations in your Python application, especially when your configuration files are JSON or YAML files. It provides an intuitive way to access and modify configuration data. It is worth noting that `DotDict` is not a built-in Python class but rather a custom class in the `configman` package library. Therefore, for you to use the `DotDict` class, you have to install the `configman` package using pip.