{"id":21064,"library":"collectfasta","title":"Collectfasta","description":"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.","status":"active","version":"3.3.3","language":"python","source_language":"en","source_url":"https://github.com/jasongi/collectfasta/","tags":["django","collectstatic","staticfiles","performance"],"install":[{"cmd":"pip install collectfasta","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required as it is a Django application.","package":"django","optional":false},{"reason":"Often used together for cloud storage backends.","package":"django-storages","optional":true}],"imports":[{"wrong":"from collectfasta import Collectfasta","symbol":"Collectfasta","correct":"import collectfasta"}],"quickstart":{"code":"# settings.py\nINSTALLED_APPS = [\n    # ...\n    'collectfasta',\n]\n\n# For S3 (using django-storages)\nSTORAGES = {\n    \"default\": {\n        \"BACKEND\": \"storages.backends.s3.S3Storage\",\n    },\n    \"staticfiles\": {\n        \"BACKEND\": \"storages.backends.s3.S3Storage\",\n    },\n}\n\n# Optional: enable two-pass strategy for performance\nCOLLECTFASTA_STRATEGY = \"collectfasta.strategies.filesystem.FileSystemStrategy\"\n# or use in-memory:\n# COLLECTFASTA_STRATEGY = \"collectfasta.strategies.memory.MemoryStrategy\"","lang":"python","description":"Basic setup: add collectfasta to INSTALLED_APPS and configure your static files storage."},"warnings":[{"fix":"Explicitly set COLLECTFASTA_STRATEGY in settings if you need the old single-pass strategy.","message":"In 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'.","severity":"breaking","affected_versions":">=3.3.0"},{"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).","message":"The MAX_ENTRIES cache setting must be set properly for the two-pass strategy. Incorrect values can cause excessive memory or I/O.","severity":"gotcha","affected_versions":">=3.3.3"},{"fix":"Use strategy parameters instead of global COLLECTFASTA_THREADS.","message":"The setting 'COLLECTFASTA_THREADS' is deprecated in favor of the strategy-specific configuration.","severity":"deprecated","affected_versions":">=3.2.0"}],"env_vars":null,"search_vec":"'3.10':13 '3.2':10 '3.3.3':15 'activ':24 'collectfasta':1 'collectstat':4,30 'compat':7 'django':6,9,29 'faster':3 'frequent':27 'latest':18 'maintain':25 'perform':32 'project':22 'python':12 'releas':20,28 'stabl':19 'staticfil':31 'version':14","created_at":"2026-04-27T16:57:54.030712+00:00","updated_at":"2026-04-27T16:57:54.030712+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.3.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/jasongi/collectfasta","docs":null,"changelog":null,"pypi":"https://pypi.org/project/collectfasta/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}