Provides HTML & CSS information based on keyword arguments and filepaths, including styling, unused classes, and other relevant data.
Project description
StyleMapper
Current Version: Beta 1.0.1 (View project on PyPi)
Contents:
Description:
This command line program analyzes CSS & HTML files based on the arguments you run stylemapper with. See below for usage info, and keyword argument info. StyleMapper makes tracking selectors and styles easier for web developers.
Installation:
pip install stylemapper
Usages:
stylemapper [-h / --help | -u / --usage]
stylemapper --compare 'stylesheet_path' 'html_folder_path'
stylemapper --getcss [choices] 'stylesheet_path'
stylemapper --gethtml [choices] 'html_file_path' | 'html_folder_path'
Keyword Arguments & Choices:
'--compare': Compare will retrieve all class selectors from CSS stylesheet, and scan the provided HTML files to let you know which selectors are not being used in your HTML code.
'--getcss': Scans the stylesheet path you provide for information, which you can select with one, or more, of the required selectors.
- classes_css: Provides table with all classes, and class count, found in stylesheet.
- ids: Provides table with all id selectors created in stylesheet
- media: Provides table with all media queries found in stylesheet
- elements: Provides table will all examples of element styling found in styleshet.
- all: Provides a table of all above information
'--gethtml': Scans the folder or HTML path you provide for information, which you can select with one, or more, of the required selectors.
- classes_html: Provides table with all classes, and class count, used in HTML files.
- ids: Provides table will all id's used in HTML files.
- inline: Provides table with all instances of inline styling found in HTML files.
- all: Provides a table of all above information.
No arguments: FEATURE COMING SOON (This will scan your entire working directory from the root folder for all instances of CSS and HTML files, where you are able to view information based on choices you have selected.)
Path Arguments:
- 'stylesheet_path': Path to the CSS stylesheet to be analyzed.
- If your styles.css sheet is within another folder, please specify this folder first, eg static/styles.css.
- 'template_path_or_template_paths': Path to a folder containing HTML templates or paths to individual template files.
Examples:
-
Analyze a single HTML template for classes and ids: stylemapper --gethtml classes_html ids template1.html
-
Analyze multiple templates in a folder: stylemapper --gethtml all html_folder/
-
Checking for unused CSS classes in HTML files stylemapper --compare styles.css html_folder/
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
File details
Details for the file stylemapper-1.0.2.tar.gz
.
File metadata
- Download URL: stylemapper-1.0.2.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ffc48ec33ac5a29dd3072eaae79f84d19d63aad1cb277946ea952fb183899c |
|
MD5 | d8f9e8399c031e1f60d0e17eb0ff83cf |
|
BLAKE2b-256 | ad255b6447e4df1fd6ce87484e0699c654cbb5f9e5b559ecb224890093e67764 |
File details
Details for the file stylemapper-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: stylemapper-1.0.2-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c804370d27ec6d48f3cc4230961c11d7e935cda0d4e3cdf12f13f19887c46d |
|
MD5 | 0245804268c882e025c89d78d782c612 |
|
BLAKE2b-256 | 695dd169d88fc1b5bf069e0178902f91afdaed6702e2fd197fcc14e17bc1e61c |