Django Media Cleaner
Searches and removes unused media files.
Installation
Install
pip install django-media-cleaner
Add to settings.py
INSTALLED_APPS = (
...
'django_media_cleaner',
...
)
Usage
To find all unused media files, run command:
./manage.py find_unused_media
To remove them:
./manage.py find_unused_media --delete
How to run tests
python -m venv venv
source venv/bin/activate
pip install -r tests/requirements.txt
pip install -e .
py.test
Metadata
Release files for django-media-cleaner 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-media-cleaner-0.1.1.tar.gz | 2.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_media_cleaner-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / django-media-cleaner-0.1.1.tar.gz
| Download URL | django-media-cleaner-0.1.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8caf9e83c867f08696c7b0ec8271c8e53d8060423a6d27117a18faaf3c718327
|
|
BLAKE2b-256 checksum How to use checksums |
fb1c0c42466d1c99e5dd97d31f4cf2d2a60ee62f797a8a18501c9e2b72b9ec84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / django_media_cleaner-0.1.1-py3-none-any.whl
| Download URL | django_media_cleaner-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
676f181634fccdadbe33632477c63d824b2a270e85fb0c62c7fcaa20160e3655
|
|
BLAKE2b-256 checksum How to use checksums |
d2eae095552ec71689ee04e33706ecc42dea42884765164f5ce1c5d94be7a0bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for django-media-cleaner 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.