pyconfs/readers/__init__.py
def from_file(
    file_path: pathlib.Path,
    file_format: Optional[str] = None,
    encoding: str = "utf-8",
    **reader_args: Any
) -> Tuple[str, Dict[str, Any]]:
    """Read a configuration from file with the given format

    If the file format is not specified, it is deduced from the file path suffix.
    """
    file_format = (
        formats.guess_format(file_path) if file_format is None else file_format
    )
    return file_format, from_str(
        file_format, string=file_path.read_text(encoding=encoding), **reader_args
    )
Read a configuration from file with the given format

    If the file format is not specified, it is deduced from the file path suffix.
    
Read a configuration from file with the given format
If the file format is not specified, it is deduced from the file path suffix.
Read a configuration from file with the given format If the file format is not specified it is deduced from the file path suffix .
def from_file(
    file_path: pathlib.Path,
    file_format: Optional[str] = None,
    encoding: str = "utf-8",
    **reader_args: Any
) -> Tuple[str, Dict[str, Any]]:
    file_format = (
        formats.guess_format(file_path) if file_format is None else file_format
    )
    return file_format, from_str(
        file_format, string=file_path.read_text(encoding=encoding), **reader_args
    )
def from_file ( file_path : pathlib . Path , file_format : Optional [ str ] = None , encoding : str = "utf-8" , ** reader_args : Any ) -> Tuple [ str , Dict [ str , Any ] ] : file_format = ( formats . guess_format ( file_path ) if file_format is None else file_format ) return file_format , from_str ( file_format , string = file_path . read_text ( encoding = encoding ) , ** reader_args )
Read a configuration from file with the given format
If the file format is not specified, it is deduced from the file path suffix.
Read a configuration from file with the given format If the file format is not specified it is deduced from the file path suffix .
"""Read a configuration from file with the given format

    If the file format is not specified, it is deduced from the file path suffix.
    """
file_path
pathlib.Path
file_format
Optional[str]
encoding
str
reader_args
Any