unused-attributes


Nameunused-attributes JSON
Version 0.1.10 PyPI version JSON
download
home_page
SummaryFind class unused attributes
upload_time2023-08-08 19:57:47
maintainer
docs_urlNone
author
requires_python>=3.8
licenseGPL
keywords optimization ununsed attributes unused variables runtime testing code quality
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Unused attributes

This utility helps to identify attributes in Python objects that have been assigned a value but are never accessed or read in the code. 
These attributes are likely unused variables that can be removed, resulting in cleaner code and slightly improved performance.

To use this utility, provide your main script file as the first argument:

    unused_attributes.py <tartget_script.py>

During runtime, it is recommended to thoroughly test your program, ensuring that all parts of the code are executed. 

Upon program exit, the utility will print the results indicating the usage status of the attributes.

For example:

    unused_attributes ./test.py

    Collection started
    2
    /home/xor/unused_attributes/test.py:6:1: W001: in class C variable b was never read
    /home/xor/unused_attributes/test.py:6:1: W001: in class C variable e was never read


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "unused-attributes",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "optimization,ununsed attributes,unused variables,runtime testing,code quality",
    "author": "",
    "author_email": "xor2003 <xor2003@gmx.com>",
    "download_url": "https://files.pythonhosted.org/packages/59/4a/176fce8430ce5576991bc3175ed37d94cd8b53d30d7e04916e0ee5a90cad/unused_attributes-0.1.10.tar.gz",
    "platform": null,
    "description": "# Unused attributes\n\nThis utility helps to identify attributes in Python objects that have been assigned a value but are never accessed or read in the code. \nThese attributes are likely unused variables that can be removed, resulting in cleaner code and slightly improved performance.\n\nTo use this utility, provide your main script file as the first argument:\n\n    unused_attributes.py <tartget_script.py>\n\nDuring runtime, it is recommended to thoroughly test your program, ensuring that all parts of the code are executed. \n\nUpon program exit, the utility will print the results indicating the usage status of the attributes.\n\nFor example:\n\n    unused_attributes ./test.py\n\n    Collection started\n    2\n    /home/xor/unused_attributes/test.py:6:1: W001: in class C variable b was never read\n    /home/xor/unused_attributes/test.py:6:1: W001: in class C variable e was never read\n\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "Find class unused attributes",
    "version": "0.1.10",
    "project_urls": {
        "Homepage": "https://github.com/xor2003/unused_attributes"
    },
    "split_keywords": [
        "optimization",
        "ununsed attributes",
        "unused variables",
        "runtime testing",
        "code quality"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "325da60a25818018b9b8782b841f287471b1d228264c5482c1978caf71843141",
                "md5": "8c10406b1758b9831fc312a720517ecc",
                "sha256": "dece0c9bbd12fb06040ef78ac4f36539d878640f7d5ab4a7d580b346b4349cb3"
            },
            "downloads": -1,
            "filename": "unused_attributes-0.1.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c10406b1758b9831fc312a720517ecc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16027,
            "upload_time": "2023-08-08T19:57:46",
            "upload_time_iso_8601": "2023-08-08T19:57:46.235059Z",
            "url": "https://files.pythonhosted.org/packages/32/5d/a60a25818018b9b8782b841f287471b1d228264c5482c1978caf71843141/unused_attributes-0.1.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "594a176fce8430ce5576991bc3175ed37d94cd8b53d30d7e04916e0ee5a90cad",
                "md5": "e1f596e703340ebb5cf0f6afeb7571a1",
                "sha256": "e59c16014a340b5d41086865c8d1b1dc957e5a87951db32bd823b403596933fd"
            },
            "downloads": -1,
            "filename": "unused_attributes-0.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "e1f596e703340ebb5cf0f6afeb7571a1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 15581,
            "upload_time": "2023-08-08T19:57:47",
            "upload_time_iso_8601": "2023-08-08T19:57:47.818300Z",
            "url": "https://files.pythonhosted.org/packages/59/4a/176fce8430ce5576991bc3175ed37d94cd8b53d30d7e04916e0ee5a90cad/unused_attributes-0.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-08 19:57:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xor2003",
    "github_project": "unused_attributes",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "unused-attributes"
}
        
Elapsed time: 0.12469s