;i dZddlZddlmZddlmZddlmZdZ dde dej ej d ej d e fd Z dde dej ej d ej d efd Zde d efd ZdS)zf uritemplate.api =============== This module contains the very simple API provided by uritemplate. N)variable) OrderedSet) URITemplate)rrexpandpartial variablesurivar_dictkwargsreturnc 8t|j|fi|S)aqExpand the template with the given parameters. :param str uri: The templated URI to expand :param dict var_dict: Optional dictionary with variables and values :param kwargs: Alternative way to pass arguments :returns: str Example:: expand('https://api.github.com{/end}', {'end': 'users'}) expand('https://api.github.com{/end}', end='gists') .. note:: Passing values by both parts, may override values in ``var_dict``. For example:: expand('https://{var}', {'var': 'val1'}, var='val2') ``val2`` will be used instead of ``val1``. )rrr r r s CC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\uritemplate/api.pyrrs'2 #;s   "8 6 6v 6 66c 8t|j|fi|S)aPartially expand the template with the given parameters. If all of the parameters for the template are not given, return a partially expanded template. :param dict var_dict: Optional dictionary with variables and values :param kwargs: Alternative way to pass arguments :returns: :class:`URITemplate` Example:: t = URITemplate('https://api.github.com{/end}') t.partial() # => URITemplate('https://api.github.com{/end}') )rrrs rrr/s'( $;s   #H 7 7 7 77rcDtt|jS)ahParse the variables of the template. This returns all of the variable names in the URI Template. :returns: Set of variable names :rtype: set Example:: variables('https://api.github.com{/end}) # => {'end'} variables('https://api.github.com/repos{/username}{/repository}') # => {'username', 'repository'} )rrvariable_names)r s rrrFs k#&&5 6 66r)N)__doc__typingt uritemplateruritemplate.orderedsetruritemplate.templater__all__strOptionalVariableValueDict VariableValuerrrrrr s" ------,,,,,, I 8<77 7j347$7 7777<8<88 8j348$8 8888.737:777777r