clear


Nameclear JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://github.com/asweigart/clear
SummaryA cross-platform Python module that provides a clear() function which clears the terminal. That's all.
upload_time2023-02-10 14:43:15
maintainer
docs_urlNone
authorAl Sweigart
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            clear
======

A cross-platform Python module that provides a clear() function which clears the terminal. That's all.

To install with pip, run:

    pip install clear

You can then clear the screen by running:

    from clear import clear
    clear()

This function runs the one-liner: `os.system('cls' if os.name == 'nt' else 'clear')`

This module exists as a simpler alternative to defining this function on your own.

Special thanks to David George for allowing me to use the Clear name on PyPI. The original Clear module ("Command-Line Extract And Rename utility. This provides a media library manager that allows extraction and renaming of media files.") can still be found in the previous releases of this project on PyPI.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/asweigart/clear",
    "name": "clear",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Al Sweigart",
    "author_email": "al@inventwithpython.com",
    "download_url": "https://files.pythonhosted.org/packages/17/a0/04e3f6a87245d75956bd254f7e133493ed6e18b49e09c874204cbfe97f42/clear-2.0.0.tar.gz",
    "platform": null,
    "description": "clear\r\n======\r\n\r\nA cross-platform Python module that provides a clear() function which clears the terminal. That's all.\r\n\r\nTo install with pip, run:\r\n\r\n    pip install clear\r\n\r\nYou can then clear the screen by running:\r\n\r\n    from clear import clear\r\n    clear()\r\n\r\nThis function runs the one-liner: `os.system('cls' if os.name == 'nt' else 'clear')`\r\n\r\nThis module exists as a simpler alternative to defining this function on your own.\r\n\r\nSpecial thanks to David George for allowing me to use the Clear name on PyPI. The original Clear module (\"Command-Line Extract And Rename utility. This provides a media library manager that allows extraction and renaming of media files.\") can still be found in the previous releases of this project on PyPI.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A cross-platform Python module that provides a clear() function which clears the terminal. That's all.",
    "version": "2.0.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "17a004e3f6a87245d75956bd254f7e133493ed6e18b49e09c874204cbfe97f42",
                "md5": "78b7a8dd6c8359c44f33293403472cce",
                "sha256": "fd6d42575ed65063edef3c46e65aa1b3fc05a144dc1691ba62033ffc35f46368"
            },
            "downloads": -1,
            "filename": "clear-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "78b7a8dd6c8359c44f33293403472cce",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2130,
            "upload_time": "2023-02-10T14:43:15",
            "upload_time_iso_8601": "2023-02-10T14:43:15.648999Z",
            "url": "https://files.pythonhosted.org/packages/17/a0/04e3f6a87245d75956bd254f7e133493ed6e18b49e09c874204cbfe97f42/clear-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-10 14:43:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "asweigart",
    "github_project": "clear",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "clear"
}
        
Elapsed time: 0.10636s