def serve_download(request, response, path, name=None):

    type = "application/x-download"
    disposition = "attachment"

    return serve_file(request, response, path, type, disposition, name)
Serve 'path' as an application/x-download attachment.
dataset/ETHPy150Open circuits/circuits/circuits/web/tools.py/serve_download