Supercharge collectstatic for remote storages
Project description
Supercollect
Install
pip install supercollect
or
poetry add supercollect
Add supercollect to INSTALLED_APPS before django.contrib.staticfiles
INSTALLED_APPS = [
...
"supercollect",
"django.contrib.staticfiles",
...
]
Set STATIC_ROOT setting
Usage
python manage.py collectstatic --turbo
How
This package is built around a very simple idea. Perform collectstatic in a temporary local storage and upload all files in parallel after it's finished. Out of the box this should support any remote storage as well as manifest storages.
def collect(self):
if collect_super_fast:
self.storage = use_temporary_file_system_storage() # super.simple
files_collected = super().collect() # super.collect
if not collect_super_fast:
return files_collected # super.pluggable
self.storage = real_s3_storage
multithreaded_upload() # super.fast
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supercollect-1.0.53.tar.gz.
File metadata
- Download URL: supercollect-1.0.53.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/5.15.133.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83b4b2e143997ca6240a22a446c79e4c3d08057e21167d63de64fd5538c7a282
|
|
| MD5 |
85e0c4f1adfb9069100b2725d4b3347b
|
|
| BLAKE2b-256 |
cf254486ecb080573780d9bea32af9b315702a88df3c2fdab9a2c0742ddc3472
|
File details
Details for the file supercollect-1.0.53-py3-none-any.whl.
File metadata
- Download URL: supercollect-1.0.53-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/5.15.133.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d8f2732041f8e27b1e31a4bac8eaf2925294ff980e9f1cf2adce1652c078b78
|
|
| MD5 |
3fe9558ecc55a3f8810d54416ba1101e
|
|
| BLAKE2b-256 |
7cb45dfcfe9351535b8ab878c843f5862ba3409b96f2a1bd62d753d35027317b
|