mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
31 lines
894 B
Python
31 lines
894 B
Python
"""Declaration of API shortcuts."""
|
|
from django_downloadview.io import BytesIteratorIO, TextIteratorIO # NoQA
|
|
from django_downloadview.files import StorageFile, VirtualFile, HTTPFile # NoQA
|
|
from django_downloadview.response import (
|
|
DownloadResponse, # NoQA
|
|
ProxiedDownloadResponse,
|
|
)
|
|
from django_downloadview.middlewares import (
|
|
BaseDownloadMiddleware, # NoQA
|
|
DownloadDispatcherMiddleware,
|
|
SmartDownloadMiddleware,
|
|
)
|
|
from django_downloadview.views import (
|
|
PathDownloadView, # NoQA
|
|
ObjectDownloadView,
|
|
StorageDownloadView,
|
|
HTTPDownloadView,
|
|
VirtualDownloadView,
|
|
BaseDownloadView,
|
|
DownloadMixin,
|
|
)
|
|
from django_downloadview.shortcuts import sendfile # NoQA
|
|
from django_downloadview.test import (
|
|
assert_download_response, # NoQA
|
|
setup_view,
|
|
temporary_media_root,
|
|
)
|
|
|
|
|
|
# Backward compatibility.
|
|
StringIteratorIO = TextIteratorIO
|