File streaming

Helpers to serve files managed with Django using various optimizations (x-sendfile, x-accel, ...)

Features currently being evaluated

Feature Description
Files in storage Serve files managed in Django storages (local or remote).
Files in local filesystem Serve files located on local filesystem, given an absolute or relative path.
Generated files (yield) Serve files which are dynamically generated via a generator (yield statement)
Lighttpd's X-Sendfile Delegate actual streaming to Lighttp via X-Sendfile.
Nginx's X-Accel-Redirect Delegate actual streaming to Nginx via X-Accel-Redirect.
Apache's X-Sendfile Delegate actual streaming to Apache via X-Sendfile.
Files at URL Proxy remote files, given an arbitrary URL.
Text-based files (bytes, unicode, StringIO) Serve files which whole content is dynamically created in memory.
Files in models (FileField) Serve files in models (FileField, ImageField), given a model instance and a
field name.
mod_wsgi's internal redirect Set Location with 200 code to trigger internal redirect (daemon mode mod_wsgi
only)
Multiple "rewrite rules" Several rules can be configured to capture files from several locations then
optimize their streaming.s

Filter results

Package Django django-downloadview django-private-storage
Package Django django-downloadview django-private-storage
Description The Web framework for
perfectionists with deadlines.
Serve files with Django. Private media file storage for
Django projects
Category Framework App Other
# Using This 435 4 2
Python 3?
Development Status Production/Stable Production/Stable Production/Stable
Last updated Aug. 12, 2022, 4:38 p.m. Aug. 5, 2022, 3:38 a.m. Nov. 16, 2021, 5:33 p.m.
Version 4.1 2.3.0 3.0
Repo GitHub GitHub GitHub
Commits
Stars 65,670 315 296
Repo Forks 27,598 56 55
Participants timgraham
adrianholovaty
malcolmt
freakboy3742
claudep
aaugustin
felixxm
jezdez
jacobian
charettes
more...
benoitbryon
Natim
johnthagen
joehybird
cjdreiss
tari
hramezani
jezdez
aleksihakli
quietlyconfident
more...
vdboor
pjstevns
axnsan12
wiegandm
dr-mark
vmspike
asfaltboy
nimdanor
OrsoBruno96
fiksani
more...
Documentation
Files in storage
Files in local filesystem
Generated files (yield)
Lighttpd's X-Sendfile
Nginx's X-Accel-Redirect
Apache's X-Sendfile
Files at URL
Text-based files (bytes, unicode, StringIO)
Files in models (FileField)
mod_wsgi's internal redirect
Multiple "rewrite rules"
Search Weight Package Description Last PyPI release: Repo Forks Stars
{{ item.weight / max_weight * 100 | number:0 }}% {{ item.title }} Grid: {{ item.description }} {{ item.last_released | date: 'mediumDate' }} N/A {{ item.repo_forks }} N/A {{ item.repo_watchers }} N/A