The glib.uri.Uri type and related functions can be used to parse URIs into their components, and build valid URIs from individual components.