{"library":"2to3","type":"library","category":null,"description":"2to3 is a Python program designed to automatically convert Python 2.x source code into Python 3.x compatible code. It achieves this by applying a series of 'fixers' that address common syntax and API changes between the two major Python versions. The PyPI package `2to3` (version 1.0, last updated September 2018) primarily provides the `2to3` command-line utility, which was historically part of the Python standard library. Its core component, `lib2to3`, has been deprecated since Python 3.11 and is slated for removal in Python 3.13, marking the tool's transition towards obsolescence for active development. As Python 2 reached its End-of-Life in January 2020, the utility's main relevance is for legacy codebase migrations.","language":"python","status":"deprecated","version":"1.0","tags":["python2","python3","migration","code conversion","deprecated"],"last_verified":"Mon May 25","install":[{"cmd":"pip install 2to3","imports":["This library is primarily used as a command-line tool."]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/2to3/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.5,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/2to3/compatibility"}}