A tool to analyze Django projects for unused components
Project description
Django Scrubber
A tool to analyze Django projects for unused components, helping you keep your codebase clean and maintainable.
Features
- Identifies unused URLs
- Finds unused methods
- Detects duplicate method implementations
- Identifies unused templates
Installation
pip install django-scrubber
Usage
To analyze a Django project, run:
django-scrubber /path/to/your/django/project
The tool will analyze your project and display a summary of findings, including:
- Unused URLs
- Unused methods
- Duplicate method implementations
- Unused templates
Example Output
Django Project Analysis Summary
==============================
Unused URLs:
- /api/v1/old-endpoint/
- /admin/legacy/
Unused Methods:
- views.old_view
- utils.deprecated_function
Duplicate Methods:
Similar implementations found in:
- views.py:process_data
- utils.py:handle_data
Unused Templates:
- templates/old_design/index.html
- templates/legacy/header.html
Requirements
- Python 3.8 or higher
- Django 3.0 or higher
License
MIT License
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 django_project_scrubber-0.1.0.tar.gz.
File metadata
- Download URL: django_project_scrubber-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
949d87717c2077e01687dd625610dc95928dfc571761b28d65216833f62d8278
|
|
| MD5 |
3da07423ee9c944c95bffeaecd756e84
|
|
| BLAKE2b-256 |
f1e8d65ff4a74724bfb9578656207dd4407488b3cd1b76b4191db3e572abe083
|
File details
Details for the file django_project_scrubber-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_project_scrubber-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b5719d4742f41928eb9d8e82ae5b927e5d871febc744748a7ce6dc69fe55442
|
|
| MD5 |
2cdaeb9a0752c95210272dcf1e73aef7
|
|
| BLAKE2b-256 |
5bdc9f3c47fb2e56371fcadfaaed34eec80e3b3065cb3efea6b2081c4b1323a5
|