This document is for Kombu's development version, which can be significantly different from previous releases. Get the stable docs here: 3.0.

URL Utilities - kombu.utils.url

URL Utilities.

kombu.utils.url.as_url(scheme, host=None, port=None, user=None, password=None, path=None, query=None, sanitize=False, mask=u'**')[source]

Generate URL from component parts.

kombu.utils.url.maybe_sanitize_url(url, mask=u'**')[source]

Sanitize url, or do nothing if url undefined.


Parse URL into mapping of components.

kombu.utils.url.sanitize_url(url, mask=u'**')[source]

Return copy of URL with password removed.


Parse URL into urlparts tuple of components.