MCPcopy Create free account

hub / github.com/python-hyper/uritemplate / functions

Functions94 in github.com/python-hyper/uritemplate

↓ 19 callersMethod_test
(self, testname: str)
tests/test_from_fixtures.py:51
↓ 15 callersMethod_label_path_expansion
Label and path expansion method. Expands for operators: '/', '.'
uritemplate/variable.py:319
↓ 11 callersFunctionmerge_dicts
( *args: t.Union[ variable.VariableValueDict, t.Dict[str, str], t.Dict[str, t.List[str]] ] )
tests/test_uritemplate.py:12
↓ 11 callersMethodquote
(self, value: t.Any)
uritemplate/variable.py:157
↓ 9 callersFunctionexpand
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 callersMethodexpand
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 callersFunctionquote
(value: t.Any, safe: str)
uritemplate/variable.py:561
↓ 5 callersMethodexpansion_separator
Identify the separator used during expansion. Per `Section 3.2.1. Variable Expansion`_: ====== =========== ========= Typ
uritemplate/variable.py:87
↓ 4 callersFunctiondict_test
(value: t.Any)
uritemplate/variable.py:551
↓ 4 callersFunctionis_list_of_tuples
( value: t.Any, )
uritemplate/variable.py:534
↓ 4 callersFunctionlist_test
(value: t.Any)
uritemplate/variable.py:547
↓ 3 callersMethodexpand
Expand the variable in question. Using ``var_dict`` and the previously parsed defaults, expand this variable and subvariables.
uritemplate/variable.py:453
↓ 3 callersFunctionload_examples
(filename: str)
tests/test_from_fixtures.py:26
↓ 3 callersMethodreserved_characters
(self)
uritemplate/variable.py:71
↓ 2 callersMethod_expand
( self, var_dict: variable.VariableValueDict, replace: bool )
uritemplate/template.py:99
↓ 2 callersFunction_merge
( var_dict: t.Optional[variable.VariableValueDict], overrides: variable.VariableValueDict, )
uritemplate/template.py:27
↓ 2 callersMethod_semi_path_expansion
Expansion method for ';' operator.
uritemplate/variable.py:371
↓ 2 callersFunctionpartial
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 callersMethod__repr__
(self)
uritemplate/orderedset.py:80
↓ 1 callersMethod_always_quote
(self, value: str)
uritemplate/variable.py:149
↓ 1 callersFunction_encode
(value: t.AnyStr, encoding: str = "utf-8")
uritemplate/variable.py:555
↓ 1 callersMethod_get_test
( self, section: str )
tests/test_from_fixtures.py:42
↓ 1 callersMethod_only_quote_unquoted_characters
(self, value: str)
uritemplate/variable.py:152
↓ 1 callersMethod_query_expansion
Expansion method for the '?' and '&' operators.
uritemplate/variable.py:271
↓ 1 callersMethod_string_expansion
( self, name: str, value: VariableValue, explode: bool, prefix: t.Opti
uritemplate/variable.py:423
↓ 1 callersMethodadd
(self, key: str)
uritemplate/orderedset.py:40
↓ 1 callersMethoddiscard
(self, key: str)
uritemplate/orderedset.py:49
↓ 1 callersFunctionexpected_set
(expected: t.Union[t.List[str], str])
tests/test_from_fixtures.py:33
↓ 1 callersFunctionfixture_file_path
(filename: str)
tests/test_from_fixtures.py:8
↓ 1 callersMethodfrom_string
(s: str)
uritemplate/variable.py:168
↓ 1 callersMethodparse
Parse the variable. This finds the: - operator, - set of safe characters, - variables, and -
uritemplate/variable.py:229
↓ 1 callersMethodpartial
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 callersMethodpop
(self, last: bool = True)
uritemplate/orderedset.py:73
↓ 1 callersMethodvariable_prefix
(self)
uritemplate/variable.py:139
↓ 1 callersFunctionvariables
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
Methodmake_test
( d: t.Dict[str, ExampleWithVariables], )
tests/test_uritemplate.py:381
Methodreplace_all
(match: "re.Match[str]")
uritemplate/template.py:110
Methodreplace_partial
(match: "re.Match[str]")
uritemplate/template.py:113
Methodtest_additional_examples_1
Check Additional Examples 1.
tests/test_from_fixtures.py:126
Methodtest_additional_examples_2
Check Additional Examples 2.
tests/test_from_fixtures.py:130
Methodtest_additional_examples_3
Check Additional Examples 3.
tests/test_from_fixtures.py:134
Methodtest_additional_examples_4
Check Additional Examples 4.
tests/test_from_fixtures.py:138
Methodtest_additional_examples_5
Check Additional Examples 5.
tests/test_from_fixtures.py:142
Methodtest_additional_examples_6
Check Additional Examples 6.
tests/test_from_fixtures.py:146
Methodtest_all_variables_parsed
This test ensures that all variables are parsed.
tests/test_uritemplate.py:418
Methodtest_default_value
(self)
tests/test_uritemplate.py:463
Methodtest_dot_prefixed_label_expansion
Check label expansion with dot-prefix.
tests/test_from_fixtures.py:102
Methodtest_expand
This test ensures that expansion works as expected.
tests/test_uritemplate.py:433
Methodtest_expand
(self)
tests/test_uritemplate.py:617
Methodtest_expand
(self)
tests/test_uritemplate.py:645
Methodtest_form_style_query_cntinuation
Check form-style query continuation.
tests/test_from_fixtures.py:118
Methodtest_form_style_query_expansion
Check form-style query expansion.
tests/test_from_fixtures.py:114
Methodtest_fragment_expansion
Check fragment expansion.
tests/test_from_fixtures.py:98
Methodtest_hash
(self)
tests/test_uritemplate.py:459
Methodtest_hashability
(self)
tests/test_uritemplate.py:577
Methodtest_is_list_of_tuples
(self)
tests/test_uritemplate.py:592
Methodtest_label_path_expansion
(self)
tests/test_uritemplate.py:479
Methodtest_label_path_expansion_explode_slash
(self)
tests/test_uritemplate.py:486
Methodtest_level_1
Check that uritemplate.expand matches Level 1 expectations.
tests/test_from_fixtures.py:66
Methodtest_level_2
Check that uritemplate.expand matches Level 2 expectations.
tests/test_from_fixtures.py:70
Methodtest_level_3
Check that uritemplate.expand matches Level 3 expectations.
tests/test_from_fixtures.py:74
Methodtest_level_4
Check that uritemplate.expand matches Level 4 expectations.
tests/test_from_fixtures.py:78
Methodtest_list_of_tuples_test
(self)
tests/test_uritemplate.py:606
Methodtest_list_test
(self)
tests/test_uritemplate.py:599
Methodtest_no_mutate
(self)
tests/test_uritemplate.py:584
Methodtest_no_variables_in_uri
This test ensures that if there are no variables present, the template evaluates to itself.
tests/test_uritemplate.py:408
Methodtest_partial
(self)
tests/test_uritemplate.py:623
Methodtest_path_segment_expansion
Check path segment expansion.
tests/test_from_fixtures.py:106
Methodtest_path_style_parameter_expansion
Check path-style param expansion.
tests/test_from_fixtures.py:110
Methodtest_query_expansion
(self)
tests/test_uritemplate.py:473
Methodtest_reserved_expansion
Check reserved expansion.
tests/test_from_fixtures.py:94
Methodtest_semi_path_expansion
(self)
tests/test_uritemplate.py:559
Methodtest_simple_string_expansion
Check simple string expansion.
tests/test_from_fixtures.py:90
Methodtest_str_repr
(self)
tests/test_uritemplate.py:451
Methodtest_string_expansion
(self)
tests/test_uritemplate.py:571
Methodtest_variable_expansion
Check variable expansion.
tests/test_from_fixtures.py:86
Methodtest_variables
(self)
tests/test_uritemplate.py:631