Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python-hyper/uritemplate
/ functions
Functions
94 in github.com/python-hyper/uritemplate
⨍
Functions
94
◇
Types & classes
16
↓ 19 callers
Method
_test
(self, testname: str)
tests/test_from_fixtures.py:51
↓ 15 callers
Method
_label_path_expansion
Label and path expansion method. Expands for operators: '/', '.'
uritemplate/variable.py:319
↓ 11 callers
Function
merge_dicts
( *args: t.Union[ variable.VariableValueDict, t.Dict[str, str], t.Dict[str, t.List[str]] ] )
tests/test_uritemplate.py:12
↓ 11 callers
Method
quote
(self, value: t.Any)
uritemplate/variable.py:157
↓ 9 callers
Function
expand
Expand the template with the given parameters. :param str uri: The templated URI to expand :param dict var_dict: Optional dictionary with var
uritemplate/api.py:19
↓ 9 callers
Method
expand
Expand the template with the given parameters. :param dict var_dict: Optional dictionary with variables and values :param kwargs: Alt
uritemplate/template.py:122
↓ 9 callers
Function
quote
(value: t.Any, safe: str)
uritemplate/variable.py:561
↓ 5 callers
Method
expansion_separator
Identify the separator used during expansion. Per `Section 3.2.1. Variable Expansion`_: ====== =========== ========= Typ
uritemplate/variable.py:87
↓ 4 callers
Function
dict_test
(value: t.Any)
uritemplate/variable.py:551
↓ 4 callers
Function
is_list_of_tuples
( value: t.Any, )
uritemplate/variable.py:534
↓ 4 callers
Function
list_test
(value: t.Any)
uritemplate/variable.py:547
↓ 3 callers
Method
expand
Expand the variable in question. Using ``var_dict`` and the previously parsed defaults, expand this variable and subvariables.
uritemplate/variable.py:453
↓ 3 callers
Function
load_examples
(filename: str)
tests/test_from_fixtures.py:26
↓ 3 callers
Method
reserved_characters
(self)
uritemplate/variable.py:71
↓ 2 callers
Method
_expand
( self, var_dict: variable.VariableValueDict, replace: bool )
uritemplate/template.py:99
↓ 2 callers
Function
_merge
( var_dict: t.Optional[variable.VariableValueDict], overrides: variable.VariableValueDict, )
uritemplate/template.py:27
↓ 2 callers
Method
_semi_path_expansion
Expansion method for ';' operator.
uritemplate/variable.py:371
↓ 2 callers
Function
partial
Partially expand the template with the given parameters. If all of the parameters for the template are not given, return a partially expanded
uritemplate/api.py:47
↓ 1 callers
Method
__repr__
(self)
uritemplate/orderedset.py:80
↓ 1 callers
Method
_always_quote
(self, value: str)
uritemplate/variable.py:149
↓ 1 callers
Function
_encode
(value: t.AnyStr, encoding: str = "utf-8")
uritemplate/variable.py:555
↓ 1 callers
Method
_get_test
( self, section: str )
tests/test_from_fixtures.py:42
↓ 1 callers
Method
_only_quote_unquoted_characters
(self, value: str)
uritemplate/variable.py:152
↓ 1 callers
Method
_query_expansion
Expansion method for the '?' and '&' operators.
uritemplate/variable.py:271
↓ 1 callers
Method
_string_expansion
( self, name: str, value: VariableValue, explode: bool, prefix: t.Opti
uritemplate/variable.py:423
↓ 1 callers
Method
add
(self, key: str)
uritemplate/orderedset.py:40
↓ 1 callers
Method
discard
(self, key: str)
uritemplate/orderedset.py:49
↓ 1 callers
Function
expected_set
(expected: t.Union[t.List[str], str])
tests/test_from_fixtures.py:33
↓ 1 callers
Function
fixture_file_path
(filename: str)
tests/test_from_fixtures.py:8
↓ 1 callers
Method
from_string
(s: str)
uritemplate/variable.py:168
↓ 1 callers
Method
parse
Parse the variable. This finds the: - operator, - set of safe characters, - variables, and -
uritemplate/variable.py:229
↓ 1 callers
Method
partial
Partially expand the template with the given parameters. If all of the parameters for the template are not given, return a partially
uritemplate/template.py:149
↓ 1 callers
Method
pop
(self, last: bool = True)
uritemplate/orderedset.py:73
↓ 1 callers
Method
variable_prefix
(self)
uritemplate/variable.py:139
↓ 1 callers
Function
variables
Parse the variables of the template. This returns all of the variable names in the URI Template. :returns: Set of variable names :rtype:
uritemplate/api.py:70
Method
__contains__
(self, key: object)
uritemplate/orderedset.py:37
Method
__eq__
(self, other: object)
uritemplate/orderedset.py:88
Method
__eq__
(self, other: object)
uritemplate/template.py:91
Method
__hash__
(self)
uritemplate/template.py:96
Method
__init__
(self, var: str)
uritemplate/variable.py:207
Method
__init__
(self, iterable: t.Optional[t.Iterable[str]] = None)
uritemplate/orderedset.py:27
Method
__init__
(self, uri: str)
uritemplate/template.py:70
Method
__iter__
(self)
uritemplate/orderedset.py:57
Method
__len__
(self)
uritemplate/orderedset.py:34
Method
__new__
( cls, name: str, bases: t.Sequence[t.Any], attrs: t.Dict[str, t.Any] )
tests/test_uritemplate.py:378
Method
__repr__
(self)
uritemplate/variable.py:223
Method
__repr__
(self)
uritemplate/template.py:85
Method
__reversed__
(self)
uritemplate/orderedset.py:65
Method
__str__
(self)
uritemplate/variable.py:226
Method
__str__
(self)
uritemplate/orderedset.py:85
Method
__str__
(self)
uritemplate/template.py:88
Method
_test_
(self: "unittest.TestCase")
tests/test_uritemplate.py:384
Method
make_test
( d: t.Dict[str, ExampleWithVariables], )
tests/test_uritemplate.py:381
Method
replace_all
(match: "re.Match[str]")
uritemplate/template.py:110
Method
replace_partial
(match: "re.Match[str]")
uritemplate/template.py:113
Method
test_additional_examples_1
Check Additional Examples 1.
tests/test_from_fixtures.py:126
Method
test_additional_examples_2
Check Additional Examples 2.
tests/test_from_fixtures.py:130
Method
test_additional_examples_3
Check Additional Examples 3.
tests/test_from_fixtures.py:134
Method
test_additional_examples_4
Check Additional Examples 4.
tests/test_from_fixtures.py:138
Method
test_additional_examples_5
Check Additional Examples 5.
tests/test_from_fixtures.py:142
Method
test_additional_examples_6
Check Additional Examples 6.
tests/test_from_fixtures.py:146
Method
test_all_variables_parsed
This test ensures that all variables are parsed.
tests/test_uritemplate.py:418
Method
test_default_value
(self)
tests/test_uritemplate.py:463
Method
test_dot_prefixed_label_expansion
Check label expansion with dot-prefix.
tests/test_from_fixtures.py:102
Method
test_expand
This test ensures that expansion works as expected.
tests/test_uritemplate.py:433
Method
test_expand
(self)
tests/test_uritemplate.py:617
Method
test_expand
(self)
tests/test_uritemplate.py:645
Method
test_form_style_query_cntinuation
Check form-style query continuation.
tests/test_from_fixtures.py:118
Method
test_form_style_query_expansion
Check form-style query expansion.
tests/test_from_fixtures.py:114
Method
test_fragment_expansion
Check fragment expansion.
tests/test_from_fixtures.py:98
Method
test_hash
(self)
tests/test_uritemplate.py:459
Method
test_hashability
(self)
tests/test_uritemplate.py:577
Method
test_is_list_of_tuples
(self)
tests/test_uritemplate.py:592
Method
test_label_path_expansion
(self)
tests/test_uritemplate.py:479
Method
test_label_path_expansion_explode_slash
(self)
tests/test_uritemplate.py:486
Method
test_level_1
Check that uritemplate.expand matches Level 1 expectations.
tests/test_from_fixtures.py:66
Method
test_level_2
Check that uritemplate.expand matches Level 2 expectations.
tests/test_from_fixtures.py:70
Method
test_level_3
Check that uritemplate.expand matches Level 3 expectations.
tests/test_from_fixtures.py:74
Method
test_level_4
Check that uritemplate.expand matches Level 4 expectations.
tests/test_from_fixtures.py:78
Method
test_list_of_tuples_test
(self)
tests/test_uritemplate.py:606
Method
test_list_test
(self)
tests/test_uritemplate.py:599
Method
test_no_mutate
(self)
tests/test_uritemplate.py:584
Method
test_no_variables_in_uri
This test ensures that if there are no variables present, the template evaluates to itself.
tests/test_uritemplate.py:408
Method
test_partial
(self)
tests/test_uritemplate.py:623
Method
test_path_segment_expansion
Check path segment expansion.
tests/test_from_fixtures.py:106
Method
test_path_style_parameter_expansion
Check path-style param expansion.
tests/test_from_fixtures.py:110
Method
test_query_expansion
(self)
tests/test_uritemplate.py:473
Method
test_reserved_expansion
Check reserved expansion.
tests/test_from_fixtures.py:94
Method
test_semi_path_expansion
(self)
tests/test_uritemplate.py:559
Method
test_simple_string_expansion
Check simple string expansion.
tests/test_from_fixtures.py:90
Method
test_str_repr
(self)
tests/test_uritemplate.py:451
Method
test_string_expansion
(self)
tests/test_uritemplate.py:571
Method
test_variable_expansion
Check variable expansion.
tests/test_from_fixtures.py:86
Method
test_variables
(self)
tests/test_uritemplate.py:631