Name | RedundantCSS JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | Identifies redundant CSS classes not used by the templates provided. |
upload_time | 2024-04-24 21:43:56 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# RedundantCSS
#### Video Demo: Coming soon
### **Contents:**
- [Description](#description)
- [Installation](#installation)
- [Usage](#usage)
## **Description:**
This script analyzes a stylesheet and identifies redundant CSS classes not used by the templates provided. The script prints the names of all unused classes to the terminal, at which point you can go to the stylesheet and delete unused classes.
<br>
**COMING IN V2:** Remove the manual aspect of removing the CSS and give user the option for this process to be done automatically.
<hr>
## **Installation:**
**COMING SOON**
<hr>
## **Usage:**
python3 redundantcss.py 'stylesheet_path' 'template_path_or_template_paths'
Arguments:
- 'stylesheet_path': Path to the CSS stylesheet to be analyzed.
- 'template_path_or_template_paths': Path to a folder containing HTML templates or paths to individual template files.
Examples:
1. Analyze a single template:
python redundantcss.py 'styles.css' 'template.html'
2. Analyze multiple templates in a folder:
python redundantcss.py 'styles.css' 'templates/'
3. Analyze multiple templates provided as separate arguments:
python redundantcss.py 'styles.css' 'template1.html' 'template2.html' 'template3.html'
Raw data
{
"_id": null,
"home_page": null,
"name": "RedundantCSS",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Josh <josh@securesap.com>",
"download_url": "https://files.pythonhosted.org/packages/dd/0d/20b2eebc55055b97743ce526500b7d0689c7ace96bfbae90a6203dec7a24/redundantcss-0.0.1.tar.gz",
"platform": null,
"description": "# RedundantCSS\n#### Video Demo: Coming soon\n\n### **Contents:**\n- [Description](#description)\n- [Installation](#installation)\n- [Usage](#usage)\n\n## **Description:**\nThis script analyzes a stylesheet and identifies redundant CSS classes not used by the templates provided. The script prints the names of all unused classes to the terminal, at which point you can go to the stylesheet and delete unused classes.\n<br>\n\n**COMING IN V2:** Remove the manual aspect of removing the CSS and give user the option for this process to be done automatically.\n<hr>\n\n## **Installation:**\n**COMING SOON**\n\n<hr>\n\n## **Usage:**\n python3 redundantcss.py 'stylesheet_path' 'template_path_or_template_paths'\n\nArguments:\n - 'stylesheet_path': Path to the CSS stylesheet to be analyzed.\n - 'template_path_or_template_paths': Path to a folder containing HTML templates or paths to individual template files.\n\nExamples:\n 1. Analyze a single template:\n python redundantcss.py 'styles.css' 'template.html'\n\n 2. Analyze multiple templates in a folder:\n python redundantcss.py 'styles.css' 'templates/'\n\n 3. Analyze multiple templates provided as separate arguments:\n python redundantcss.py 'styles.css' 'template1.html' 'template2.html' 'template3.html'",
"bugtrack_url": null,
"license": null,
"summary": "Identifies redundant CSS classes not used by the templates provided.",
"version": "0.0.1",
"project_urls": {
"Github": "https://github.com/JoshHofer01/RedundantCSS"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3bacab17d0482231faabcf941003d88c949aa645eeeb7d4679fb67e8746820aa",
"md5": "5ff626e5e62cc8fb937d0d7ddf13e359",
"sha256": "f9fd83ac18082a71b69632ec928b79800a81f0375a9519c6a5b7b45fc8d2912d"
},
"downloads": -1,
"filename": "redundantcss-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5ff626e5e62cc8fb937d0d7ddf13e359",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4711,
"upload_time": "2024-04-24T21:43:55",
"upload_time_iso_8601": "2024-04-24T21:43:55.043478Z",
"url": "https://files.pythonhosted.org/packages/3b/ac/ab17d0482231faabcf941003d88c949aa645eeeb7d4679fb67e8746820aa/redundantcss-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dd0d20b2eebc55055b97743ce526500b7d0689c7ace96bfbae90a6203dec7a24",
"md5": "f03e12ab76b5375fdb7dadbd8eb71d7d",
"sha256": "7b9f070551a3ea9cbc79d3d7cd0b3a247ca8f302f9489876a67d57ea06cd6efc"
},
"downloads": -1,
"filename": "redundantcss-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "f03e12ab76b5375fdb7dadbd8eb71d7d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3420,
"upload_time": "2024-04-24T21:43:56",
"upload_time_iso_8601": "2024-04-24T21:43:56.791539Z",
"url": "https://files.pythonhosted.org/packages/dd/0d/20b2eebc55055b97743ce526500b7d0689c7ace96bfbae90a6203dec7a24/redundantcss-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-24 21:43:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JoshHofer01",
"github_project": "RedundantCSS",
"github_not_found": true,
"lcname": "redundantcss"
}