Registry / web-framework / collectfasta

collectfasta

JSON →
library3.3.3pypypi✓ verified 85d ago

A faster collectstatic for Django, compatible with Django >=3.2 and Python >=3.10. Version 3.3.3 is the latest stable release. The project is actively maintained with frequent releases.

pip install collectfasta
INSTALL
IMPORT
SIG · COLLECTFASTA
C
collectfasta
web-frameworkpythonv3.3.3
Install
3.5s avg
Import
—
Disk
66MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v3.3.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66.8MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.5s · import 0.000s · 67MB
66MB installed
● package 66MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Collectfasta
✓ import collectfasta
✗ from collectfasta import Collectfasta

Basic setup: add collectfasta to INSTALLED_APPS and configure your static files storage.

# settings.py INSTALLED_APPS = [ # ... 'collectfasta', ] # For S3 (using django-storages) STORAGES = { "default": { "BACKEND": "storages.backends.s3.S3Storage", }, "staticfiles": { "BACKEND": "storages.backends.s3.S3Storage", }, } # Optional: enable two-pass strategy for performance COLLECTFASTA_STRATEGY = "collectfasta.strategies.filesystem.FileSystemStrategy" # or use in-memory: # COLLECTFASTA_STRATEGY = "collectfasta.strategies.memory.MemoryStrategy"
Debug
Known issues
breakingIn version 3.3.0, the default strategy changed from the original single-pass to a two-pass strategy. If you rely on the old behavior, set COLLECTFASTA_STRATEGY to 'collectfasta.strategies.singlepass.SinglePassStrategy'.
fix
Explicitly set COLLECTFASTA_STRATEGY in settings if you need the old single-pass strategy.
affects: >=3.3.0
gotchaThe MAX_ENTRIES cache setting must be set properly for the two-pass strategy. Incorrect values can cause excessive memory or I/O.
fix
Ensure your cache backend's MAX_ENTRIES is set appropriately (e.g., for LocMemCache, default is 300; adjust based on your static file count).
affects: >=3.3.3
deprecatedThe setting 'COLLECTFASTA_THREADS' is deprecated in favor of the strategy-specific configuration.
fix
Use strategy parameters instead of global COLLECTFASTA_THREADS.
affects: >=3.2.0
Upgrade
Version history
3.3.3latest on PyPI · released Dec 25, 2025
Audit
Dependencies
djangorequiredRequired as it is a Django application.
django-storagesoptionalOften used together for cloud storage backends.
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
collectfasta — pip install collectfasta · libregistry