Skip to main content
MindTouch Success Center

URI functions (TCS)

The following functions and variables are part the DekiScript and MindTouch runtime environment.

uri.appendpath(uri, path) : str

Append path segments to a URI.

Name Type Description
uri uri base uri
path any (optional) path segments to append (must a string or list of strings)

uri.appendquery(uri, args) : str

Append query parameters to a URI.

Name Type Description
uri uri base uri
args map query parameters to append

uri.build(uri, path, args) : str

Build a new URI with path and query parameters.

Name Type Description
uri uri base uri
path any (optional) path segments to append (must a string or list of strings)
args map (optional) query parameters to append

uri.decode(text) : str

Decode text as a URI component.

Name Type Description
text str text to decode

uri.encode(text) : str

Encode text as a URI component.

Name Type Description
text str text to encode

uri.isvalid(value) : bool

Check if a value is a valid URI.

Name Type Description
value any (optional) uri to validate

uri.parts(uri) : map

Decompose a URI into its component parts.

Name Type Description
uri uri uri to decompose
  • Was this article helpful?