stylemapper


Namestylemapper JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryProvides HTML & CSS information based on keyword arguments and filepaths, including styling, unused classes, and other relevant data.
upload_time2024-09-18 12:00:57
maintainerNone
docs_urlNone
authorJosh Hofer
requires_pythonNone
licenseNone
keywords python css html front-end remove unused css
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# StyleMapper
##### Current Version: Beta 1.0.1 [(View project on PyPi)](https://pypi.org/project/stylemapper/)

### **Contents:**
- [Description](#description)
- [Installation](#installation)
- [Usage](#usage)
- [Arguments](#keyword-arguments--choices)
- [Examples](#usages)

## **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'

<hr>

###  **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.

<hr> 

####  Examples:
  1. Analyze a single HTML template for classes and ids:
     stylemapper --gethtml classes_html ids template1.html

  2. Analyze multiple templates in a folder:
     stylemapper --gethtml all html_folder/

  3. Checking for unused CSS classes in HTML files
     stylemapper --compare styles.css html_folder/

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "stylemapper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, css, html, front-end, remove unused css",
    "author": "Josh Hofer",
    "author_email": "<josh@securesap.com>",
    "download_url": "https://files.pythonhosted.org/packages/ad/25/5b6447e4df1fd6ce87484e0699c654cbb5f9e5b559ecb224890093e67764/stylemapper-1.0.2.tar.gz",
    "platform": null,
    "description": "\n# StyleMapper\n##### Current Version: Beta 1.0.1 [(View project on PyPi)](https://pypi.org/project/stylemapper/)\n\n### **Contents:**\n- [Description](#description)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Arguments](#keyword-arguments--choices)\n- [Examples](#usages)\n\n## **Description:**\nThis 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.\n\n## **Installation:**\n    pip install stylemapper\n\n## **Usages:**\n    stylemapper [-h / --help | -u / --usage]\n    stylemapper --compare 'stylesheet_path' 'html_folder_path'\n    stylemapper --getcss [choices] 'stylesheet_path'\n    stylemapper --gethtml [choices] 'html_file_path' | 'html_folder_path'\n\n<hr>\n\n###  **Keyword Arguments & Choices:**\n**'--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.\n\n**'--getcss':** Scans the stylesheet path you provide for information, which you can select with one, or more, of the required selectors.\n  - classes_css: Provides table with all classes, and class count, found in stylesheet.\n  - ids: Provides table with all id selectors created in stylesheet\n  - media: Provides table with all media queries found in stylesheet\n  - elements: Provides table will all examples of element styling found in styleshet.\n  - all: Provides a table of all above information\n\n**'--gethtml':** Scans the folder or HTML path you provide for information, which you can select with one, or more, of the required selectors.\n  - classes_html: Provides table with all classes, and class count, used in HTML files.\n  - ids: Provides table will all id's used in HTML files.\n  - inline: Provides table with all instances of inline styling found in HTML files.\n  - all: Provides a table of all above information.\n\n**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.)*\n\n\n\n### **Path Arguments**:\n  - 'stylesheet_path': Path to the CSS stylesheet to be analyzed.\n    - If your styles.css sheet is within another folder, please specify this folder first, eg *static/styles.css*.\n  - 'template_path_or_template_paths': Path to a folder containing HTML templates or paths to individual template files.\n\n<hr> \n\n####  Examples:\n  1. Analyze a single HTML template for classes and ids:\n     stylemapper --gethtml classes_html ids template1.html\n\n  2. Analyze multiple templates in a folder:\n     stylemapper --gethtml all html_folder/\n\n  3. Checking for unused CSS classes in HTML files\n     stylemapper --compare styles.css html_folder/\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Provides HTML & CSS information based on keyword arguments and filepaths, including styling, unused classes, and other relevant data.",
    "version": "1.0.2",
    "project_urls": {
        "Source": "https://github.com/JoshHofer01/StyleMapper"
    },
    "split_keywords": [
        "python",
        " css",
        " html",
        " front-end",
        " remove unused css"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "695dd169d88fc1b5bf069e0178902f91afdaed6702e2fd197fcc14e17bc1e61c",
                "md5": "0245804268c882e025c89d78d782c612",
                "sha256": "90c804370d27ec6d48f3cc4230961c11d7e935cda0d4e3cdf12f13f19887c46d"
            },
            "downloads": -1,
            "filename": "stylemapper-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0245804268c882e025c89d78d782c612",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 14751,
            "upload_time": "2024-09-18T12:00:56",
            "upload_time_iso_8601": "2024-09-18T12:00:56.520793Z",
            "url": "https://files.pythonhosted.org/packages/69/5d/d169d88fc1b5bf069e0178902f91afdaed6702e2fd197fcc14e17bc1e61c/stylemapper-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ad255b6447e4df1fd6ce87484e0699c654cbb5f9e5b559ecb224890093e67764",
                "md5": "d8f9e8399c031e1f60d0e17eb0ff83cf",
                "sha256": "e0ffc48ec33ac5a29dd3072eaae79f84d19d63aad1cb277946ea952fb183899c"
            },
            "downloads": -1,
            "filename": "stylemapper-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d8f9e8399c031e1f60d0e17eb0ff83cf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12905,
            "upload_time": "2024-09-18T12:00:57",
            "upload_time_iso_8601": "2024-09-18T12:00:57.854603Z",
            "url": "https://files.pythonhosted.org/packages/ad/25/5b6447e4df1fd6ce87484e0699c654cbb5f9e5b559ecb224890093e67764/stylemapper-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-18 12:00:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "JoshHofer01",
    "github_project": "StyleMapper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "stylemapper"
}
        
Elapsed time: 1.78719s