toolware/utils/convert.py
def parts_to_uri(base_uri, uri_parts):
    """
    Converts uri parts to valid uri.
    Example: /memebers, ['profile', 'view'] => /memembers/profile/view
    """
    uri = "/".join(map(lambda x: str(x).rstrip('/'), [base_uri] + uri_parts))
    return uri
def parts_to_uri(base_uri, uri_parts):
    """
    Converts uri parts to valid uri.
    Example: /memebers, ['profile', 'view'] => /memembers/profile/view
    """
    uri = "/".join(map(lambda x: str(x).rstrip('/'), [base_uri] + uri_parts))
    return uri
Converts uri parts to valid uri.
    Example: /memebers, ['profile', 'view'] => /memembers/profile/view