pyconfs/configuration.py
def update_from_str(self, string: str, format: str, *, source=None) -> None:
        """Update the configuration from a string"""
        if source is None:
            string_repr = f"{string[:30]} ..." if len(string) > 32 else string
            source = f"String: {string_repr} ({format} reader)"

        entries = readers.from_str(format, string=string)
        self.update_from_dict(entries, source=source)
Update the configuration from a string
Update the configuration from a string
Update the configuration from a string
def update_from_str(self, string: str, format: str, *, source=None) -> None:
        if source is None:
            string_repr = f"{string[:30]} ..." if len(string) > 32 else string
            source = f"String: {string_repr} ({format} reader)"
        entries = readers.from_str(format, string=string)
        self.update_from_dict(entries, source=source)
def update_from_str ( self , string : str , format : str , * , source = None ) -> None : if source is None : string_repr = f"{string[:30]} ..." if len ( string ) > 32 else string source = f"String: {string_repr} ({format} reader)" entries = readers . from_str ( format , string = string ) self . update_from_dict ( entries , source = source )
Update the configuration from a string
Update the configuration from a string
"""Update the configuration from a string"""
self
string
str
format
str
source