def badge_url(key, value, color='green'):
    """Creates a custom shields.io badge for given key and value."""

    base_url = 'https://img.shields.io/badge/{0}-{1}-{2}.svg'
    return base_url.format(key, value, color)