File streaming
Helpers to serve files managed with Django using various optimizations (x-sendfile, x-accel, ...)
Search & Filter
| Package | Django | django-downloadview | django-private-storage | file validator |
|---|---|---|---|---|
|
Description
|
The Web framework for
perfectionists with deadlines. |
Serve files with Django.
|
Private media file storage for
Django projects |
The first Python validation
package uses type, mime, extension, magic numbers, and size to… |
|
Category
|
Framework | App | Other | Other |
|
Using This
|
435
|
4
|
2
|
1
|
|
Python 3?
|
Yes | Yes | Yes | Yes |
|
Dev Status
|
Production/Stable | Production/Stable | Production/Stable | Production/Stable |
|
Version (PyPI)
|
6.0.5 | 2.5.0 | 3.1.3 | 1.0.9 |
|
Stars
|
87,434 | 401 | 351 | 75 |
|
Forks
|
33,841 | 56 | 62 | 5 |
|
Commits
|
|
|
|
|
|
Updated
|
7 May 2026 | 5 May 2026 | 5 Oct 2025 | 16 Feb 2025 |
|
License
|
BSD-3-Clause | BSD | Custom | MIT license |
|
Links
|
||||
|
Feature Comparison
(click cells to edit)
|
||||
|
Files in local filesystem
|
|
|
—
|
—
|
|
Files in storage
|
|
|
—
|
—
|
|
Files in models (FileField)
|
|
|
—
|
—
|
|
Files at URL
|
|
|
—
|
—
|
|
Text-based files (bytes, unicode, StringIO)
|
|
|
—
|
—
|
|
Generated files (yield)
|
|
|
—
|
—
|
|
Lighttpd's X-Sendfile
|
|
|
—
|
—
|
|
Apache's X-Sendfile
|
|
|
—
|
—
|
|
Nginx's X-Accel-Redirect
|
|
|
—
|
—
|
|
mod_wsgi's internal redirect
|
|
|
—
|
—
|
|
Multiple "rewrite rules"
|
|
|
—
|
—
|
The Web framework for perfectionists with deadlines.
Serve files with Django.
Private media file storage for Django projects
The first Python validation package uses type, mime, extension, magic numbers, and size to validate files. ✅
Features Being Compared
Files in local filesystem
Serve files located on local filesystem, given an absolute or relative path.
Files in storage
Serve files managed in Django storages (local or remote).
Files in models (FileField)
Serve files in models (FileField, ImageField), given a model instance and a field name.
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.
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.
Apache's X-Sendfile
Delegate actual streaming to Apache via X-Sendfile.
Nginx's X-Accel-Redirect
Delegate actual streaming to Nginx via X-Accel-Redirect.
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