�
��fa � �� � d Z ddlZddlmZ ddlmZ ddlmZ dZ 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)r r �expand�partial� variables�uri�var_dict�kwargs�returnc �8 � t | � � j |fi |��S )aq Expand 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``.
)r r �r r
r s �1/usr/lib/python3/dist-packages/uritemplate/api.pyr r s' |