{"categories":[{"label":"Terminals","url":"https://skillfed.io/packages/category/terminals"}],"enrichment":{"capability":"Provides the get_terminal_size() function for Python versions that lack it natively, returning terminal dimensions as a named tuple of columns and lines.","skillfed_tags":["legacy","terminal-io"],"use_cases":["Detect terminal dimensions in Python 2.6 or 2.7 applications that format output for the current terminal width","Build terminal-based CLI tools that need to wrap text or position output based on available columns and lines","Support older Python versions in a codebase that must run across multiple Python generations"],"what_it_does":"This package backports Python 3.3's shutil.get_terminal_size() function to earlier Python versions that lack it. It returns a named tuple containing the terminal's column count and line count, useful for terminal-aware applications that need to adapt output width and height.\n\nThe implementation is written in pure Python rather than C. The package has been abandoned since 2016 with no releases after 2014-08-19, and is primarily relevant for legacy Python 2 codebases; modern Python 3 versions include this function in the standard library.","worth_installing":"No, unless you are maintaining legacy Python 2 code that requires terminal size detection and cannot upgrade to Python 3. For any modern codebase, use shutil.get_terminal_size() directly from the standard library. The package is abandoned and offers no advantages over the native implementation."},"id":"backports-shutil-get-terminal-size","links":{"html":"https://skillfed.io/packages/backports-shutil-get-terminal-size","md":"https://skillfed.io/packages/backports-shutil-get-terminal-size.md","pypi":"https://pypi.org/project/backports-shutil-get-terminal-size/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2014-08-19","license_spdx":null,"license_treatment":"permissive","name":"backports.shutil_get_terminal_size","python_support":"unspecified","summary":"A backport of the get_terminal_size function from Python 3.3's shutil."},"popularity":{"monthly_downloads":435391,"position":6681,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
