MCPcopy Create free account
hub / github.com/python-hyper/uritemplate / quote

Function quote

uritemplate/variable.py:561–564  ·  view source on GitHub ↗
(value: t.Any, safe: str)

Source from the content-addressed store, hash-verified

559
560
561def quote(value: t.Any, safe: str) -> str:
562 if not isinstance(value, (str, bytes)):
563 value = str(value)
564 return urllib.parse.quote(_encode(value), safe)

Callers 5

_always_quoteMethod · 0.85
_query_expansionMethod · 0.85
_label_path_expansionMethod · 0.85
_semi_path_expansionMethod · 0.85

Calls 2

_encodeFunction · 0.85
quoteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…