py2store.utils.uri_utils

utils to work with URIs

py2store.utils.uri_utils.build_uri(scheme, database='', username=None, password=None, host='localhost', port=None)[source]

Reverse of parse_uri function. Builds a URI string from provided params.

py2store.utils.uri_utils.parse_uri(uri)[source]

Parses DB URI string into a dict of params. :param uri: string formatted as: “scheme://username:password@host:port/database” :return: a dict with these params parsed.