(mapping)
return Options(encoding, dialect, colspec, rowspec,
                       decimal_separator=decimal,
                       group_separator=group)
Reconstruct a `Options` from a plain dictionary (see :func:`as_dict`).
Reconstruct a `Options` from a plain dictionary (see :func:`as_dict`).
Reconstruct a Options from a plain dictionary ( see : func : as_dict ) .
def from_dict(mapping):
        # type: (Dict[str, Any]) -> Options
        """
        Reconstruct a `Options` from a plain dictionary (see :func:`as_dict`).
        """
        encoding = mapping["encoding"]
        delimiter = mapping["delimiter"]
        quotechar = mapping["quotechar"]
        doublequote = mapping["doublequote"]
        quoting = mapping["quoting"]
        skipinitialspace = mapping["skipinitialspace"]

        dialect = textimport.Dialect(
            delimiter, quotechar, None, doublequote, skipinitialspace,
            quoting=quoting)

        colspec = mapping["columntypes"]
        rowspec = mapping["rowspec"]
        colspec = Options.spec_from_encodable(colspec, ColumnType)
        rowspec = Options.spec_from_encodable(rowspec, RowSpec)
        decimal = mapping.get("decimal_separator", ".")
        group = mapping.get("group_separator", "")

        return Options(encoding, dialect, colspec, rowspec,
                       decimal_separator=decimal,
                       group_separator=group)
def from_dict ( mapping ) : # type: (Dict[str, Any]) -> Options encoding = mapping [ "encoding" ] delimiter = mapping [ "delimiter" ] quotechar = mapping [ "quotechar" ] doublequote = mapping [ "doublequote" ] quoting = mapping [ "quoting" ] skipinitialspace = mapping [ "skipinitialspace" ] dialect = textimport . Dialect ( delimiter , quotechar , None , doublequote , skipinitialspace , quoting = quoting ) colspec = mapping [ "columntypes" ] rowspec = mapping [ "rowspec" ] colspec = Options . spec_from_encodable ( colspec , ColumnType ) rowspec = Options . spec_from_encodable ( rowspec , RowSpec ) decimal = mapping . get ( "decimal_separator" , "." ) group = mapping . get ( "group_separator" , "" ) return Options ( encoding , dialect , colspec , rowspec , decimal_separator = decimal , group_separator = group )