2020-01-07 14:42:04 +00:00
|
|
|
# flake8: noqa
|
2013-10-21 12:54:57 +00:00
|
|
|
"""Declaration of API shortcuts."""
|
2024-08-05 08:51:17 +00:00
|
|
|
|
2020-01-07 14:42:04 +00:00
|
|
|
from django_downloadview.files import HTTPFile, StorageFile, VirtualFile
|
|
|
|
|
from django_downloadview.io import BytesIteratorIO, TextIteratorIO
|
2020-01-07 14:10:42 +00:00
|
|
|
from django_downloadview.middlewares import (
|
2020-01-07 14:51:55 +00:00
|
|
|
BaseDownloadMiddleware,
|
2020-01-07 14:10:42 +00:00
|
|
|
DownloadDispatcherMiddleware,
|
|
|
|
|
SmartDownloadMiddleware,
|
|
|
|
|
)
|
2020-01-07 14:51:55 +00:00
|
|
|
from django_downloadview.response import DownloadResponse, ProxiedDownloadResponse
|
2020-01-07 14:42:04 +00:00
|
|
|
from django_downloadview.shortcuts import sendfile
|
2020-01-07 14:51:55 +00:00
|
|
|
from django_downloadview.test import (
|
|
|
|
|
assert_download_response,
|
|
|
|
|
setup_view,
|
|
|
|
|
temporary_media_root,
|
|
|
|
|
)
|
2020-01-07 14:10:42 +00:00
|
|
|
from django_downloadview.views import (
|
2020-01-07 14:18:54 +00:00
|
|
|
BaseDownloadView,
|
|
|
|
|
DownloadMixin,
|
|
|
|
|
HTTPDownloadView,
|
2020-01-07 14:10:42 +00:00
|
|
|
ObjectDownloadView,
|
2020-01-07 14:51:55 +00:00
|
|
|
PathDownloadView,
|
2020-01-07 14:10:42 +00:00
|
|
|
StorageDownloadView,
|
|
|
|
|
VirtualDownloadView,
|
|
|
|
|
)
|
2015-06-12 14:47:46 +00:00
|
|
|
|
|
|
|
|
# Backward compatibility.
|
|
|
|
|
StringIteratorIO = TextIteratorIO
|