@view_config(context=SimplePackageResource, request_method='GET', subpath=(),
             renderer='package.jinja2')
@addslash
def package_versions(context, request):
    fallback = request.registry.fallback
    if fallback == 'redirect':
        if request.registry.always_show_upstream:
            return _simple_redirect_always_show(context, request)
        else:
            return _simple_redirect(context, request)
    elif fallback == 'cache':
        if request.registry.always_show_upstream:
            return _simple_cache_always_show(context, request)
        else:
            return _simple_cache(context, request)
    else:
        return _simple_serve(context, request)
Render the links for all versions of a package
dataset/ETHPy150Open mathcamp/pypicloud/pypicloud/views/simple.py/package_versions