code: def show_external_release_file(root, request):
      
      session = DBSession()
  
      settings = request.registry.settings
      whlify = asbool(settings.get('pyshop.mirror.wheelify', '0'))
      release = Release.by_id(session, int(request.matchdict['release_id']))
  
      filename = (release.whlify_download_url_file if whlify else
                  release.download_url_file)
  
      rv = {'url': release.download_url,
            'filename': filename,
            'original': release.download_url_file,
            'whlify': whlify
            }
  
      release.downloads += 1
      release.package.downloads += 1
      session.add(release.package)
      session.add(release)
      request.response.date = datetime.datetime.utcnow()
      return rv
docs: Download a release from a download url from its package information.
      Must be used with :func:`pyshop.helpers.download.renderer_factory`
      to download the release file.
  
      :return: download informations
      :rtype: dict