pyconfs/configuration.py
def update_from_file(
        self,
        file_path: Union[str, pathlib.Path],
        file_format: Optional[str] = None,
        encoding: str = "utf-8",
        **reader_args: Any,
    ) -> None:
        """Update the configuration from a file"""
        file_path = pathlib.Path(file_path)
        file_format, entries = readers.from_file(
            file_path=file_path, file_format=file_format, **reader_args
        )
        self.update_from_dict(
            entries, source=f"{file_path.resolve()} ({file_format.upper()} reader)"
        )
Update the configuration from a file
Update the configuration from a file
Update the configuration from a file
def update_from_file(
        self,
        file_path: Union[str, pathlib.Path],
        file_format: Optional[str] = None,
        encoding: str = "utf-8",
        **reader_args: Any,
    ) -> None:
        file_path = pathlib.Path(file_path)
        file_format, entries = readers.from_file(
            file_path=file_path, file_format=file_format, **reader_args
        )
        self.update_from_dict(
            entries, source=f"{file_path.resolve()} ({file_format.upper()} reader)"
        )
def update_from_file ( self , file_path : Union [ str , pathlib . Path ] , file_format : Optional [ str ] = None , encoding : str = "utf-8" , ** reader_args : Any , ) -> None : file_path = pathlib . Path ( file_path ) file_format , entries = readers . from_file ( file_path = file_path , file_format = file_format , ** reader_args ) self . update_from_dict ( entries , source = f"{file_path.resolve()} ({file_format.upper()} reader)" )
Update the configuration from a file
Update the configuration from a file
"""Update the configuration from a file"""
self
file_path
Union[str, pathlib.Path]
file_format
Optional[str]
encoding
str
reader_args
Any