Debian Codegraph @

django_downloadview/api.py

raw
1 # flake8: noqa
2 """Declaration of API shortcuts."""
3
4 from django_downloadview.files import HTTPFile, StorageFile, VirtualFile
5 from django_downloadview.io import BytesIteratorIO, TextIteratorIO
6 from django_downloadview.middlewares import (
7 BaseDownloadMiddleware,
8 DownloadDispatcherMiddleware,
9 SmartDownloadMiddleware,
10 )
11 from django_downloadview.response import DownloadResponse, ProxiedDownloadResponse
12 from django_downloadview.shortcuts import sendfile
13 from django_downloadview.test import (
14 assert_download_response,
15 setup_view,
16 temporary_media_root,
17 )
18 from django_downloadview.views import (
19 BaseDownloadView,
20 DownloadMixin,
21 HTTPDownloadView,
22 ObjectDownloadView,
23 PathDownloadView,
24 StorageDownloadView,
25 VirtualDownloadView,
26 )
27
28 # Backward compatibility.
29 StringIteratorIO = TextIteratorIO