def load_value_from_schema(v):
x = urllib.parse.urlparse(v)<EOL>if x.scheme.lower() == '<STR_LIT>':<EOL><INDENT>v = Decimal(x.netloc)<EOL><DEDENT>elif x.scheme.lower() in ['<STR_LIT:int>', '<STR_LIT>']:<EOL><INDENT>v = int(x.netloc)<EOL><DEDENT>elif x.scheme.lower() == '<STR_LIT:float>':<EOL><INDENT>v = float(x.netloc)<EOL><DEDENT>elif x.scheme.lower() in ['<STR_LIT:s>', '<STR_LIT:str>', '<STR_LIT:string>']:<EOL><INDENT>v = str(x.netloc)<EOL><DEDENT>elif x.scheme.lower() in ['<STR_LIT:u>', '<STR_LIT>']:<EOL><INDENT>v = six.u(x.netloc)<EOL><DEDENT>elif x.scheme.lower() == '<STR_LIT:email>':<EOL><INDENT>v = six.u(x.netloc)<EOL><DEDENT>elif x.scheme.lower() == '<STR_LIT:bool>':<EOL><INDENT>v = bool(x.netloc)<EOL><DEDENT>elif x.scheme.lower() in ['<STR_LIT:b>', '<STR_LIT>']:<EOL><INDENT>v = six.b(x.netloc)<EOL><DEDENT>elif x.scheme.lower() in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>v = MayaDT.from_iso8601(x.netloc).datetime()<EOL><DEDENT>elif x.scheme.lower() in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>v = MayaDT.from_rfc2822(x.netloc).datetime()<EOL><DEDENT>elif x.scheme.lower() in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>v = MayaDT.from_rfc3339(x.netloc).datetime()<EOL><DEDENT>elif x.scheme.lower() in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>v = maya.parse(x.netloc).datetime()<EOL><DEDENT>elif x.scheme.lower() == '<STR_LIT:date>':<EOL><INDENT>v = datetime.date.fromtimestamp(float(x.netloc))<EOL><DEDENT>elif x.scheme.lower() == '<STR_LIT:time>':<EOL><INDENT>v = time.gmtime(float(x.netloc))<EOL><DEDENT>else:<EOL><INDENT>v = None<EOL><DEDENT>return v<EOL>
Load a value from a schema defined string.