normalize_url#

omni.client.normalize_url(url: str) str#

Normalize a URL by parsing it then recomposing it.

This function parses the provided URL and then recomposes it into a normalized form. Normalization may include percent-encoding, removing redundant path segments, and standardizing the URL format.

Parameters:

url – The URL to normalize.

Returns:

A string containing the normalized URL.

Note

Use this function to ensure URLs are in a canonical form before using them with other client library functions.