def parse_url(url):
    """
    Parse a 'swift://CONTAINER/OBJECT' style URL
    :param url:
    :return: dictionary with "container" and "obj" keys
    """
    url = url.replace('swift://', '')
    if url.find('/') == -1:
        raise ValueError("Swift url must be 'swift://container/object'")
    pieces = url.split('/')
    containername = pieces[0]
    objname = '/'.join(pieces[1:])
    return {'container': containername, 'obj': objname}
