pyconfs/configuration.py
def from_file(
        cls,
        file_path: Union[str, pathlib.Path],
        file_format: Optional[str] = None,
        *,
        name: Optional[str] = None,
        encoding: str = "utf-8",
        **reader_args: Any,
    ) -> "Configuration":
        """Create a Configuration from a file"""
        file_path = pathlib.Path(file_path)

        cfg = cls(name=name)
        cfg.update_from_file(
            file_path=file_path, file_format=file_format, **reader_args
        )
        return cfg
Create a Configuration from a file
Create a Configuration from a file
Create a Configuration from a file
def from_file(
        cls,
        file_path: Union[str, pathlib.Path],
        file_format: Optional[str] = None,
        *,
        name: Optional[str] = None,
        encoding: str = "utf-8",
        **reader_args: Any,
    ) -> "Configuration":
        file_path = pathlib.Path(file_path)
        cfg = cls(name=name)
        cfg.update_from_file(
            file_path=file_path, file_format=file_format, **reader_args
        )
        return cfg
def from_file ( cls , file_path : Union [ str , pathlib . Path ] , file_format : Optional [ str ] = None , * , name : Optional [ str ] = None , encoding : str = "utf-8" , ** reader_args : Any , ) -> "Configuration" : file_path = pathlib . Path ( file_path ) cfg = cls ( name = name ) cfg . update_from_file ( file_path = file_path , file_format = file_format , ** reader_args ) return cfg
Create a Configuration from a file
Create a Configuration from a file
"""Create a Configuration from a file"""
cls
file_path
Union[str, pathlib.Path]
file_format
Optional[str]
name
Optional[str]
encoding
str
reader_args
Any